wrap(*args) public

Creates a GzipFile object associated with io, and executes the block with the newly created GzipFile object, just like File.open. The GzipFile object will be closed automatically after executing the block. If you want to keep the associated IO object opening, you may call +Zlib::GzipFile#finish+ method in the block.

Show source
Register or log in to add new notes.