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::Chinese, Coordinates::Common, Coordinates::DefaultDateIndices, Coordinates::DefaultDayIndex, Coordinates::DefaultTimeIndices, Coordinates::Indian, Coordinates::Iranian, Coordinates::Javanese, Coordinates::LocationTable, Coordinates::MATCH, Coordinates::Mayan, Coordinates::PERIOD, Coordinates::PERIOD_NAME, Coordinates::PRECISION, Coordinates::PRECISION_NAME, Coordinates::Russian, Coordinates::Tibetan, Coordinates::VALUE, Coordinates::Yi

Constants included from When

AUTHOR, CENTURY, COPYRIGHT, 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, YEARS

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, utf_gets

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, date_or_era, era, free_conv, m17n, now, server, strptime, today, when?, where?

Methods inherited from Parts::Enumerator

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

Instance Attribute Details

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

繰り返しの始点



1146
1147
1148
# File 'lib/when_exe/icalendar.rb', line 1146

def dtstart
  @dtstart
end

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

多重繰り返しロジック



1150
1151
1152
# File 'lib/when_exe/icalendar.rb', line 1150

def logics
  @logics
end

#ruleHash (readonly)

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

Returns:

  • (Hash)


1142
1143
1144
# File 'lib/when_exe/icalendar.rb', line 1142

def rule
  @rule
end

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

多重繰り返しの現在状態



1154
1155
1156
# File 'lib/when_exe/icalendar.rb', line 1154

def steps
  @steps
end

Instance Method Details

#_rewindrewind された self

巻き戻す

Returns:



1162
1163
1164
1165
# File 'lib/when_exe/icalendar.rb', line 1162

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