Class Stream::WrappedStream
In: lib/stream.rb
Parent: BasicStream

Class WrappedStream is the abstract superclass for stream classes that wrap another stream. The basic methods are simple delegated to the wrapped stream. Thus creating a WrappedStream on a CollectionStream would yield an equivalent stream:

 arrayStream = [1,2,3].create_stream

 arrayStream.to_a => [1,2,3]
 Stream::WrappedStream.new(arrayStream).to_a => [1,2,3]

Methods

Attributes

wrapped_stream  [R] 

Public Class methods

Create a new WrappedStream wrapping the Stream otherStream.

Public Instance methods

Returns the wrapped stream unwrapped.

[Validate]