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.

doc_ruby_on_rails
2015-06-14 18:11:12
Comments
Leave a Comment

Please login to continue.