orig_name=

orig_name=(p1) Instance Public methods Specify the original name (str) in the gzip header.

mtime=

mtime=(p1) Instance Public methods Specify the modification time (mtime) in the gzip header. Using a Fixnum or Integer

flush

flush(flush=nil) Instance Public methods Flushes all the internal buffers of the GzipWriter object. The meaning of flush is same as in Zlib::Deflate#deflate. Zlib::SYNC_FLUSH is used if flush is omitted. It is no use giving flush Zlib::NO_FLUSH.

comment=

comment=(p1) Instance Public methods Specify the comment (str) in the gzip header.

<<

<<(p1) Instance Public methods Document-method: << Same as IO.

open

Zlib::GzipWriter.open(filename, level=nil, strategy=nil) { |gz| ... } Class Public methods 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 ::new and Zlib::GzipFile.wrap.

new

Zlib::GzipWriter.new(io, level = nil, strategy = nil, options = {}) Class Public methods Creates a GzipWriter object associated with io. level and strategy should be the same as the arguments of Zlib::Deflate.new. The GzipWriter object writes gzipped data to io. io must respond to the write method that behaves the same as IO#write. 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.

unused

unused() Instance Public methods Returns the rest of the data which had read for parsing gzip format, or nil if the whole gzip file is not parsed yet.

ungetc

ungetc(p1) Instance Public methods See Zlib::GzipReader documentation for a description.

ungetbyte

ungetbyte(p1) Instance Public methods See Zlib::GzipReader documentation for a description.