Sha256: 2870b8a30ebb33d422654f815570b3694d0bd30fd53e811793d65e5e0aae533b
Contents?: true
Size: 749 Bytes
Versions: 3
Compression:
Stored size: 749 Bytes
Contents
# Gets yielded from the writing methods of the CompressingStreamer # and accepts the data being written into the ZIP class ZipTricks::Streamer::Writable # Initializes a new Writable with the object it delegates the writes to. # Normally you would not need to use this method directly def initialize(writer) @writer = writer end # Writes the given data to the output stream # # @param d[String] the binary string to write (part of the uncompressed file) # @return [self] def <<(d); @writer << d; self; end # Writes the given data to the output stream # # @param d[String] the binary string to write (part of the uncompressed file) # @return [Fixnum] the number of bytes written def write(d); @writer << d; end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zip_tricks-3.1.1 | lib/zip_tricks/streamer/writable.rb |
zip_tricks-3.1.0 | lib/zip_tricks/streamer/writable.rb |
zip_tricks-3.0.0 | lib/zip_tricks/streamer/writable.rb |