Method: Zlib::GzipReader.open

Defined in:
ext/zstdlib/ruby/zlib-2.2/zlib.c,
ext/zstdlib/ruby/zlib-2.3/zlib.c,
ext/zstdlib/ruby/zlib-2.4/zlib.c,
ext/zstdlib/ruby/zlib-2.5/zlib.c,
ext/zstdlib/ruby/zlib-2.6/zlib.c

.open(*args) ⇒ Object

call-seq: Zlib::GzipReader.open(filename) {|gz| … }

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 Zlib::GzipReader.new and ZLib::GzipFile.wrap.



3692
3693
3694
3695
3696
# File 'ext/zstdlib/ruby/zlib-2.2/zlib.c', line 3692

static VALUE
rb_gzreader_s_open(int argc, VALUE *argv, VALUE klass)
{
    return gzfile_s_open(argc, argv, klass, "rb");
}