class Yajl::Gzip::StreamWriter

Wraper around the Zlib::GzipWriter class

def self.encode(obj, io)

Look up Yajl::Encoder#encode for parameter documentation

A helper method for one-off encoding to a gzip-compressed stream
def self.encode(obj, io)
  Yajl::Encoder.new.encode(obj, new(io))
end