Class: Iterator::Iteration

Inherits:
Object
  • Object
show all
Defined in:
lib/iterator.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Iteration

Returns a new instance of Iteration.



26
27
28
# File 'lib/iterator.rb', line 26

def initialize(&block)
	@block = block
end

Instance Method Details

#yield(*args) ⇒ Object



29
30
31
# File 'lib/iterator.rb', line 29

def yield(*args)
	@block.call(*args)
end