Class: Yajl::Gzip::StreamWriter

Inherits:
Zlib::GzipWriter
  • Object
show all
Defined in:
lib/yajl/gzip/stream_writer.rb

Overview

Wraper around the Zlib::GzipWriter class

Class Method Summary (collapse)

Class Method Details

+ (Object) encode(obj, io)

A helper method for one-off encoding to a gzip-compressed stream

Look up Yajl::Encoder#encode for parameter documentation



9
10
11
# File 'lib/yajl/gzip/stream_writer.rb', line 9

def self.encode(obj, io)
  Yajl::Encoder.new.encode(obj, new(io))
end