open(...)
public
Opens a file specified by filename for writing gzip compressed
data, and returns a GzipWriter object associated with that file. Further
details of this method are found in Zlib::GzipWriter.new and
Zlib::GzipWriter#wrap.
Show source
/*
* call-seq: Zlib::GzipWriter.open(filename, level=nil, strategy=nil) { |gz| ... }
*
* Opens a file specified by +filename+ for writing gzip compressed data, and
* returns a GzipWriter object associated with that file. Further details of
* this method are found in Zlib::GzipWriter.new and Zlib::GzipWriter#wrap.
*/
static VALUE
rb_gzwriter_s_open(argc, argv, klass)
int argc;
VALUE *argv;
VALUE klass;
{
return gzfile_s_open(argc, argv, klass, "wb");
}