Class: Abra::Resource
- Inherits:
-
Object
- Object
- Abra::Resource
- Defined in:
- lib/resource.rb
Instance Method Summary collapse
- #extract(res, dst) ⇒ Object
-
#initialize(apk_path) ⇒ Resource
constructor
A new instance of Resource.
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 |