new

Zlib::GzipReader.new(io, options = {})
Class Public methods

Creates a GzipReader object associated with io. The GzipReader object reads gzipped data from io, and parses/decompresses it. The io must have a read method that behaves same as the IO#read.

The options hash may be used to set the encoding of the data. :external_encoding, :internal_encoding and :encoding may be set as in IO.new.

If the gzip file header is incorrect, raises an Zlib::GzipFile::Error exception.

doc_ruby_on_rails
2015-06-14 16:02:04
Comments
Leave a Comment

Please login to continue.