A simple class which allows the construction of Enumerator from a block
Current API for Lazy Enumerator does not provide an easy way to handle internal state. We "cheat" and use yielder to hold it for us. A new yielder is created when generating or after a `rewind`. This way we avoid issues like bugs.ruby-lang.org/issues/7691 or bugs.ruby-lang.org/issues/7696
# File lib/backports/1.9.1/enumerator.rb, line 22 def <<(*arg) @final_block.yield(*arg) self end
Generated with the Darkfish Rdoc Generator 2.