vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/file.rb
# Convenience method for adding the contents of a file to the archive
Convenience method for adding the contents of a file to the archive
Convenience method for adding the contents of a file to the archive
def add(entry, src_path, &continue_on_exists_proc)
      continue_on_exists_proc ||= proc { ::Zip.continue_on_exists_proc }
      check_entry_exists(entry, continue_on_exists_proc, 'add')
      new_entry = entry.kind_of?(::Zip::Entry) ? entry : ::Zip::Entry.new(@name, entry.to_s)
      new_entry.gather_fileinfo_from_srcpath(src_path)
      new_entry.dirty = true
      @entry_set << new_entry
    end
def add ( entry , src_path , & continue_on_exists_proc ) continue_on_exists_proc ||= proc { :: Zip . continue_on_exists_proc } check_entry_exists ( entry , continue_on_exists_proc , 'add' ) new_entry = entry . kind_of? ( :: Zip :: Entry ) ? entry : :: Zip :: Entry . new ( @name , entry . to_s ) new_entry . gather_fileinfo_from_srcpath ( src_path ) new_entry . dirty = true @entry_set << new_entry end
Convenience method for adding the contents of a file to the archive
Convenience method for adding the contents of a file to the archive
entry
<not_specific>
src_path
<not_specific>
continue_on_exists_proc
<not_specific>