Like Reader but writes all input to an output IO object in addition to yielding to the block.
[Source]
# File lib/bcat/reader.rb, line 71 71: def initialize(source, out=$stdout) 72: @source = source 73: @out = out 74: end
# File lib/bcat/reader.rb, line 76 76: def each 77: @source.each do |chunk| 78: yield chunk 79: @out.write chunk 80: end 81: end
[Validate]