Class | Enumerator::Yielder |
In: |
lib/backports/2.0.0/enumerable/lazy.rb
lib/backports/1.9.1/enumerator/new.rb |
Parent: | Object |
A simple class which allows the construction of Enumerator from a block
backports_memo | [RW] | 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 |