Class: CalendarNote::WorldWeek::Enumerator

Inherits:
When::CalendarTypes::CalendarNote::Enumerator show all
Defined in:
lib/when_exe/region/world.rb

Overview

イベントを取得する Enumerator

Instance Attribute Summary

Attributes inherited from When::Parts::Enumerator

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

Instance Method Summary collapse

Methods inherited from When::CalendarTypes::CalendarNote::Enumerator

#_succ, #initialize

Methods inherited from When::Parts::Enumerator

_options, #_rewind, #each, #has_next?, #initialize, #next, #with_index, #with_object

Constructor Details

This class inherits a constructor from When::CalendarTypes::CalendarNote::Enumerator

Instance Method Details

#succWhen::TM::TemporalPosition

次のイベントを得る


163
164
165
166
167
168
169
170
171
172
173
# File 'lib/when_exe/region/world.rb', line 163

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