This is a wrapper around Zlib::GzipReader to allow it's read method to adhere to the IO spec, allowing for two parameters (length, and buffer)
Helper method for one-off parsing from a gzip-compressed stream
See Yajl::Parser#parse for parameter documentation
# File lib/yajl/gzip/stream_reader.rb, line 22 def self.parse(input, options={}, buffer_size=nil, &block) if input.is_a?(String) input = StringIO.new(input) end Yajl::Parser.new(options).parse(new(input), buffer_size, &block) end
Generated with the Darkfish Rdoc Generator 2.