Class CompositeReadIO
In: lib/composite_io.rb
Parent: Object

Concatenate together multiple IO objects into a single, composite IO object for purposes of reading as a single stream.

Usage:

    crio = CompositeReadIO.new(StringIO.new('one'), StringIO.new('two'), StringIO.new('three'))
    puts crio.read # => "onetwothree"

Methods

new   read   rewind  

Public Class methods

Create a new composite-read IO from the arguments, all of which should respond to read in a manner consistent with IO.

Public Instance methods

Read from the IO object, overlapping across underlying streams as necessary.

[Validate]