class Yajl::Gzip::StreamWriter
Wraper around the Zlib::GzipWriter class
Public Class Methods
encode(obj, io)
click to toggle source
A helper method for one-off encoding to a gzip-compressed stream
Look up Yajl::Encoder#encode
for parameter documentation
# File lib/yajl/gzip/stream_writer.rb, line 8 def self.encode(obj, io) Yajl::Encoder.new.encode(obj, new(io)) end