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::CommonResidue, Coordinates::DefaultDateIndices, Coordinates::DefaultDayIndex, Coordinates::DefaultTimeIndices, Coordinates::IndianCities, 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, DurationP1D, DurationP1M, DurationP1W, DurationP1Y, EUCJP, HOUR, MINUTE, MONTH, MinusInfinity, PlusInfinity, SECOND, STRING, SYSTEM, SourceURI, TimeValue, UTF8, When::VERSION, W31J, 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_dms

Methods included from When

Calendar, CalendarEra, CalendarNote, Clock, Duration, M17n, MonthName, Pair, Residue, Resource, TemporalPosition, _setup_, at, client, config, era, free_conv, m17n, now, server, today, utc, 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)

繰り返しの始点


1032
1033
1034
# File 'lib/when_exe/icalendar.rb', line 1032

def dtstart
  @dtstart
end

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

多重繰り返しロジック


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

def logics
  @logics
end

#ruleHash (readonly)

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

Returns:

  • (Hash)

1028
1029
1030
# File 'lib/when_exe/icalendar.rb', line 1028

def rule
  @rule
end

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

多重繰り返しの現在状態


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

def steps
  @steps
end

Instance Method Details

#_rewindrewind された self

巻き戻す

Returns:


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

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