Skip to content

Commit

Permalink
Update comment for Zip::File.open.
Browse files Browse the repository at this point in the history
  • Loading branch information
hainesr committed Oct 19, 2019
1 parent f58e380 commit 3fea995
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/zip/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ def initialize(path_or_io, create = false, buffer = false, options = {})
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?
Expand Down

0 comments on commit 3fea995

Please sign in to comment.