Class: Enumerator::Yielder
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(&block) ⇒ Yielder
constructor
A new instance of Yielder.
- #yield(*arg) ⇒ Object
Constructor Details
#initialize(&block) ⇒ Yielder
Returns a new instance of Yielder.
21 22 23 |
# File 'lib/backports/enumerator.rb', line 21 def initialize(&block) @main_block = block end |