Method: Zip::ZipFile#replace

Defined in:
lib/pik/contrib/zip/zip.rb

#replace(entry, srcPath) ⇒ Object

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



1460
1461
1462
1463
# File 'lib/pik/contrib/zip/zip.rb', line 1460

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