Class: Zip::Archive

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

Instance Method Summary collapse

Instance Method Details

#content(path) ⇒ Object



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

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

#find(path) ⇒ Object



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

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