Method: Dynflow::RoundRobin#next
- Defined in:
- lib/dynflow/round_robin.rb
#next ⇒ Object
22 23 24 25 26 27 |
# File 'lib/dynflow/round_robin.rb', line 22 def next @cursor = 0 if @cursor > @data.size - 1 @data[@cursor] ensure @cursor += 1 end |