each

each(*args) Instance Public methods See Zlib::GzipReader documentation for a description.

bytes

bytes() Instance Public methods This is a deprecated alias for each_byte.

open

Zlib::GzipReader.open(filename) {|gz| ... } Class Public methods Opens a file specified by filename as a gzipped file, and returns a GzipReader object associated with that file. Further details of this method are in ::new and ZLib::GzipFile.wrap.

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.

to_io

to_io() Instance Public methods Same as IO.

sync=

sync = flag Instance Public methods Same as IO. If flag is true, the associated IO object must respond to the flush method. While sync mode is true, the compression ratio decreases sharply.

sync

sync() Instance Public methods Same as IO#sync

os_code

os_code() Instance Public methods Returns OS code number recorded in the gzip file header.

orig_name

orig_name() Instance Public methods Returns original filename recorded in the gzip file header, or nil if original filename is not present.

mtime

mtime() Instance Public methods Returns last modification time recorded in the gzip file header.