Class: RecursiveUnzipper
- Inherits:
-
Object
- Object
- RecursiveUnzipper
- Defined in:
- lib/unzip_me/recursive_unzipper.rb
Instance Attribute Summary collapse
-
#exceptions ⇒ Object
readonly
Returns the value of attribute exceptions.
-
#zip_path ⇒ Object
readonly
Returns the value of attribute zip_path.
Instance Method Summary collapse
- #extract_to(extract_to_path) ⇒ Object
-
#initialize(zip_path) ⇒ RecursiveUnzipper
constructor
A new instance of RecursiveUnzipper.
Constructor Details
#initialize(zip_path) ⇒ RecursiveUnzipper
Returns a new instance of RecursiveUnzipper.
4 5 6 7 |
# File 'lib/unzip_me/recursive_unzipper.rb', line 4 def initialize(zip_path) @zip_path = zip_path @exceptions = {} end |
Instance Attribute Details
#exceptions ⇒ Object (readonly)
Returns the value of attribute exceptions.
2 3 4 |
# File 'lib/unzip_me/recursive_unzipper.rb', line 2 def exceptions @exceptions end |
#zip_path ⇒ Object (readonly)
Returns the value of attribute zip_path.
2 3 4 |
# File 'lib/unzip_me/recursive_unzipper.rb', line 2 def zip_path @zip_path end |
Instance Method Details
#extract_to(extract_to_path) ⇒ Object
9 10 11 12 |
# File 'lib/unzip_me/recursive_unzipper.rb', line 9 def extract_to(extract_to_path) UnzipmeUnzipper.new(zip_path, { extract_to: extract_to_path }).unzip scan_and_unzip_dir(extract_to_path) end |