class Generator
The generator is made a Stream by aliasing the methods at_end?, basic_forward, basic_peek, set_to_begin to the approriate methods end?, next, peek and rewind of the Generator class.
Be careful if you already use a version of Akinori MUSHAs generator.rb. Check out the version numbers of the one you use and the one comming with the stream package.
Public Instance Methods
create_stream()
click to toggle source
Returns the generator itself.
# File lib/generator2stream.rb, line 20 def create_stream; self; end