Object
Like Reader but writes all input to an output IO object in addition to yielding to the block.
# File lib/bcat/reader.rb, line 58 def initialize(source, out=$stdout) @source = source @out = out end
# 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.