Class: When::CalendarNote::WorldWeek::Enumerator
- Inherits:
-
Enumerator
- Object
- Enumerator
- Parts::Enumerator
- Enumerator
- When::CalendarNote::WorldWeek::Enumerator
- Defined in:
- lib/when_exe/region/world.rb
Overview
イベントを取得する Enumerator
Instance Attribute Summary
Attributes inherited from Parts::Enumerator
#count, #count_limit, #current, #direction, #exdate, #first, #index, #last, #object, #options, #parent, #processed
Instance Method Summary collapse
-
#succ ⇒ When::TM::TemporalPosition
次のイベントを得る.
Methods inherited from Enumerator
Methods inherited from Parts::Enumerator
_options, #_rewind, #each, #has_next?, #initialize, #next, #with_index, #with_object
Constructor Details
This class inherits a constructor from When::CalendarNote::Enumerator
Instance Method Details
#succ ⇒ When::TM::TemporalPosition
次のイベントを得る
145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/when_exe/region/world.rb', line 145 def succ value = @current if @current==:first @first = event_eval(@first) if @delta.sign < 0 @current = @first else @current = event_eval(@current + @delta) @current = event_eval(@current + @delta * 2) if @current.to_i == value.to_i end return value end |