method

wrap

v1_9_3_125 - Show latest stable - Class: Zlib::GzipFile
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.