Class: When::V::Event::Enumerator

Inherits:
Parts::Enumerator show all
Includes:
When, Coordinates
Defined in:
lib/when_exe/icalendar.rb

Overview

When::V::Event が使用する Enumerator

Defined Under Namespace

Classes: Logic, Step

Constant Summary collapse

FreqIndex =
{'YEARLY'   =>YEAR, 'MONTHLY'   =>MONTH,
'WEEKLY'   =>WEEK, 'DAILY'     =>DAY,
'HOURLY'   =>HOUR, 'MINUTELY'  =>MINUTE, 'SECONDLY' =>SECOND}
PostFreqIndex =
{'BYYEAR'   =>YEAR, 'BYMONTH'   =>MONTH,  'BYWEEKNO' =>WEEK,
'BYYEARDAY'=>DAY,  'BYMONTHDAY'=>DAY,
'BYWEEKDAY'=>DAY,  'BYDAY'     =>DAY,
'BYHOUR'   =>HOUR, 'BYMINUTE'  =>MINUTE, 'BYSECOND' =>SECOND}

Constants included from Coordinates

Coordinates::Bahai, Coordinates::Common, Coordinates::DefaultDateIndices, Coordinates::DefaultDayIndex, Coordinates::DefaultTimeIndices, Coordinates::Indian, Coordinates::Iranian, Coordinates::Javanese, Coordinates::MATCH, Coordinates::Mayan, Coordinates::PERIOD, Coordinates::PERIOD_NAME, Coordinates::PRECISION, Coordinates::PRECISION_NAME, Coordinates::Tibetan, Coordinates::VALUE, Coordinates::Yi

Constants included from When

CENTURY, DAY, DECADE, EUCJP, HOUR, MINUTE, MONTH, MinusInfinity, Month, P1D, P1M, P1W, P1Y, PT1H, PT1M, PT1S, PlusInfinity, RootDir, SECOND, STRING, SYSTEM, SourceURI, TimeValue, UTF8, When::VERSION, W31J, WEEK, Week, YEAR

Instance Attribute Summary collapse

Attributes inherited from Parts::Enumerator

#count, #count_limit, #current, #direction, #exdate, #first, #index, #last, #object, #options, #parent, #processed

Instance Method Summary collapse

Methods included from Coordinates

to_deg, to_deg_225, to_dms

Methods included from When

Border, Calendar, CalendarEra, CalendarNote, Clock, Duration, Index, Location, M17n, MonthName, Pair, Residue, Resource, TemporalPosition, Wikipedia, _const_missing, _define_common_calendar_types, _setup_, _setup_info, at, client, column, config, const_missing, era, free_conv, m17n, now, server, today, when?

Methods inherited from Parts::Enumerator

_options, #each, #has_next?, #next, #succ, #with_index, #with_object

Instance Attribute Details

#dtstartWhen::TM::TemporalPosition, When::Parts::GeometricComplex (readonly)

繰り返しの始点



1040
1041
1042
# File 'lib/when_exe/icalendar.rb', line 1040

def dtstart
  @dtstart
end

#logicsArray<When::V::Event::Enumerator::Logic> (readonly)

多重繰り返しロジック



1044
1045
1046
# File 'lib/when_exe/icalendar.rb', line 1044

def logics
  @logics
end

#ruleHash (readonly)

RRULE Property - iCalendar の RRULE を Hash に展開したものを保持している

Returns:

  • (Hash)


1036
1037
1038
# File 'lib/when_exe/icalendar.rb', line 1036

def rule
  @rule
end

#stepsArray<When::V::Event::Enumerator::Step>

多重繰り返しの現在状態



1048
1049
1050
# File 'lib/when_exe/icalendar.rb', line 1048

def steps
  @steps
end

Instance Method Details

#_rewindrewind された self

巻き戻す

Returns:



1056
1057
1058
1059
# File 'lib/when_exe/icalendar.rb', line 1056

def _rewind
  @steps = [Step.new(_first_seed(@first, @dtstart))]
  super
end