Class: Dehenzify::Dehenzifier
- Inherits:
-
Object
- Object
- Dehenzify::Dehenzifier
- Defined in:
- lib/dehenzify/dehenzifier.rb
Instance Attribute Summary collapse
-
#file_name ⇒ Object
Returns the value of attribute file_name.
Instance Method Summary collapse
-
#initialize(file_name) ⇒ Dehenzifier
constructor
A new instance of Dehenzifier.
- #run!(base_dir: nil) ⇒ Object
Constructor Details
#initialize(file_name) ⇒ Dehenzifier
Returns a new instance of Dehenzifier.
6 7 8 |
# File 'lib/dehenzify/dehenzifier.rb', line 6 def initialize(file_name) self.file_name = file_name end |
Instance Attribute Details
#file_name ⇒ Object
Returns the value of attribute file_name.
4 5 6 |
# File 'lib/dehenzify/dehenzifier.rb', line 4 def file_name @file_name end |
Instance Method Details
#run!(base_dir: nil) ⇒ Object
10 11 12 13 |
# File 'lib/dehenzify/dehenzifier.rb', line 10 def run!(base_dir: nil) extractor = Dehenzify::Extractor.new extractor.extract(file_name, base_dir: base_dir) end |