Class: Zip::Archive

Inherits:
Object
  • Object
show all
Defined in:
lib/peregrin/zip_patch.rb

Instance Method Summary collapse

Instance Method Details

#find(path) ⇒ Object



7
8
9
# File 'lib/peregrin/zip_patch.rb', line 7

def find(path)
  detect { |f| f.name == path }
end

#read(path) ⇒ Object



3
4
5
# File 'lib/peregrin/zip_patch.rb', line 3

def read(path)
  fopen(path) { |f| f.read }
end