Sha256: cc30564129f823756bd9e1e4056559488aac3b7d9d26a4fd3f450e69d1bfecfb
Contents?: true
Size: 290 Bytes
Versions: 4
Compression:
Stored size: 290 Bytes
Contents
module Pmux class Writer CHUNK_SIZE = 8192 def write; end def finish; end end class STDOUTWriter < Writer def write path open(path) {|f| until f.eof? data = f.read(CHUNK_SIZE) STDOUT.write data end } end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pmux-0.1.3 | lib/pmux/writer.rb |
pmux-0.1.2 | lib/pmux/writer.rb |
pmux-0.1.1 | lib/pmux/writer.rb |
pmux-0.1.0 | lib/pmux/writer.rb |