Method: When::TM::Duration::Enumerator#succ
- Defined in:
- lib/when_exe/tmobjects.rb
#succ ⇒ When::TM::TemporalPosition
次の時間位置を取得する
568 569 570 571 572 573 574 575 |
# File 'lib/when_exe/tmobjects.rb', line 568 def succ value = @current @current = (@count_limit.kind_of?(Numeric) && @count >= @count_limit) ? nil : (@current==:first) ? @first : (@direction==:forward) ? @first + @parent * @count : @first - @parent * @count @count += 1 return value end |