Method: Laser::Cutter::Notching::InfiniteIterator#next
- Defined in:
- lib/laser-cutter/notching/path_generator.rb
#next ⇒ Object
25 26 27 28 29 30 31 32 |
# File 'lib/laser-cutter/notching/path_generator.rb', line 25 def next item = self.array[next_index].clone self.next_index += 1 self.next_index %= array.size self.calls += 1 item = yield item, self.calls if block_given? item end |