Sha256: 1909f09cca58b75e17b54729b42badbb2de2276b1172b8892ca4e6f65d6b566b
Contents?: true
Size: 368 Bytes
Versions: 26
Compression:
Stored size: 368 Bytes
Contents
module Yajl module Gzip # Wraper around the Zlib::GzipWriter class class StreamWriter < ::Zlib::GzipWriter # A helper method for one-off encoding to a gzip-compressed stream # # Look up Yajl::Encoder#encode for parameter documentation def self.encode(obj, io) Yajl::Encoder.new.encode(obj, new(io)) end end end end
Version data entries
26 entries across 26 versions & 9 rubygems