Method: Zip::ZipFile#replace

Defined in:
lib/zip/zip.rb

#replace(entry, srcPath) ⇒ Object

Replaces the specified entry with the contents of srcPath (from the file system).



1467
1468
1469
1470
# File 'lib/zip/zip.rb', line 1467

def replace(entry, srcPath)
  check_file(srcPath)
  add(remove(entry), srcPath)
end