level

level() Instance Public methods Returns compression level.

finish

finish() Instance Public methods Closes the GzipFile object. Unlike #close, this method never calls the close method of the associated IO object. Returns the associated IO object.

crc

crc() Instance Public methods Returns CRC value of the uncompressed data.

comment

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

closed?

closed?() Instance Public methods Same as IO#closed?

close

close() Instance Public methods Closes the GzipFile object. This method calls close method of the associated IO object. Returns the associated IO object.

wrap

Zlib::GzipReader.wrap(io, ...) { |gz| ... }Zlib::GzipWriter.wrap(io, ...) { |gz| ... } Class Public methods Creates a GzipReader or GzipWriter associated with io, passing in any necessary extra options, and executes the block with the newly created object just like File.open. The GzipFile object will be closed automatically after executing the block. If you want to keep the associated IO object open, you may call #finish method in the block.

inspect

inspect() Instance Public methods Constructs a String of the GzipFile Error

set_dictionary

set_dictionary(string) Instance Public methods Sets the preset dictionary and returns string. This method is available just only after ::new or Zlib::ZStream#reset method was called. See zlib.h for details. Can raise errors of Z_STREAM_ERROR if a parameter is invalid (such as NULL dictionary) or the stream state is inconsistent, Z_DATA_ERROR if the given dictionary doesn't match the expected one (incorrect adler32 value)

params

params(level, strategy) Instance Public methods Changes the parameters of the deflate stream to allow changes between different types of data that require different types of compression. Any unprocessed data is flushed before changing the params. See ::new for a description of level and strategy.