method

new

v1_8_6_287 - Show latest stable - Class: Zlib::GzipReader
new(p1)
public

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

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