Update comment for `Zip::File.open`.
This commit is contained in:
parent
f58e38012c
commit
3fea9958c2
|
@ -104,9 +104,9 @@ module Zip
|
||||||
end
|
end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
# Same as #new. If a block is passed the ZipFile object is passed
|
# 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
|
# to the block and is automatically closed afterwards, just as with
|
||||||
# ruby's builtin File.open method.
|
# ruby's builtin File::open method.
|
||||||
def open(file_name, create = false, options = {})
|
def open(file_name, create = false, options = {})
|
||||||
zf = ::Zip::File.new(file_name, create, false, options)
|
zf = ::Zip::File.new(file_name, create, false, options)
|
||||||
return zf unless block_given?
|
return zf unless block_given?
|
||||||
|
|
Loading…
Reference in New Issue