Parent

Methods

Yajl::Deflate::StreamWriter

A wrapper around the Zlib::Deflate class for easier JSON stream parsing

Public Class Methods

encode(obj, io) click to toggle source

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

Look up Yajl::Encoder#encode for parameter documentation

    # File lib/yajl/deflate/stream_writer.rb, line 16
16:       def self.encode(obj, io)
17:         Yajl::Encoder.new.encode(obj, new(io))
18:       end

Public Instance Methods

write(str) click to toggle source

A helper method to allow use similar to IO#write

    # File lib/yajl/deflate/stream_writer.rb, line 8
 8:       def write(str)
 9:         deflate(str)
10:         str.size unless str.nil?
11:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.