vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/file.rb
# 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.
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.
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?
        begin
          yield zf
        ensure
          zf.close
        end
      end
def open ( file_name , create = false , options = { } ) zf = :: Zip :: File . new ( file_name , create , false , options ) return zf unless block_given? begin yield zf ensure zf . close end end
Similar to ::new.
Similar to :: new .
file_name
<not_specific>
create
<not_specific>
options
<not_specific>