Class Generator
In: lib/generator2stream.rb
Parent: Object

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.

Methods

Included Modules

Stream

External Aliases

end? -> at_end?
next -> basic_forward
peek -> basic_peek
rewind -> set_to_begin

Public Instance methods

Returns the generator itself.

[Validate]