Class: Generator

### Home Classes Methods

### In Files

- lib/generator2stream.rb

### Parent

Object

### Methods

- #create_stream

### Included Modules

- Stream

### Class/Module Index

Quicksearch

- Stream
- Stream::BasicStream
- Stream::CollectionStream
- Stream::ConcatenatedStream
- Stream::EmptyStream
- Stream::EndOfStreamException
- Stream::FilteredStream
- Stream::ImplicitStream
- Stream::IntervalStream
- Stream::MappedStream
- Stream::ReversedStream
- Stream::WrappedStream
- Array
- Enumerable
- Generator
- Object

No matching classes.

# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.