Parent

Methods

Files

Bcat::TeeFilter

Like Reader but writes all input to an output IO object in addition to yielding to the block.

Public Class Methods

new(source, out=$stdout) click to toggle source
# File lib/bcat/reader.rb, line 58
def initialize(source, out=$stdout)
  @source = source
  @out = out
end

Public Instance Methods

each() click to toggle source
# File lib/bcat/reader.rb, line 63
def each
  @source.each do |chunk|
    yield chunk
    @out.write chunk
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.