Update comment for `Zip::File.open`.
This commit is contained in:
parent
f58e38012c
commit
3fea9958c2
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue