Update comment for `Zip::File.open`.

This commit is contained in:
Robert Haines 2019-10-19 07:15:51 +01:00
parent f58e38012c
commit 3fea9958c2
1 changed files with 3 additions and 3 deletions

View File

@ -104,9 +104,9 @@ module Zip
end
class << self
# Same as #new. If a block is passed the ZipFile object is passed
# to the block and is automatically closed afterwards just as with
# ruby's builtin File.open method.
# Similar to ::new. If a block is passed the Zip::File object is passed
# to the block and is automatically closed afterwards, just as with
# ruby's builtin File::open method.
def open(file_name, create = false, options = {})
zf = ::Zip::File.new(file_name, create, false, options)
return zf unless block_given?