Class: Abra::Resource

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

Instance Method Summary collapse

Constructor Details

#initialize(apk_path) ⇒ Resource

Returns a new instance of Resource.



6
7
8
# File 'lib/resource.rb', line 6

def initialize(apk_path)
  @apk = apk_path
end

Instance Method Details

#extract(res, dst) ⇒ Object



10
11
12
# File 'lib/resource.rb', line 10

def extract(res, dst)
  Zip::ZipFile.open(@apk).extract(res, dst)
end