Class: Cabriolet::Extraction::BaseExtractor
- Inherits:
-
Object
- Object
- Cabriolet::Extraction::BaseExtractor
- Defined in:
- lib/cabriolet/extraction/base_extractor.rb
Overview
BaseExtractor provides common extraction functionality for all extractors Reduces code duplication between SimpleExtractor and Parallel::Extractor
Instance Method Summary collapse
-
#initialize(output_dir, preserve_paths: true, overwrite: false) ⇒ BaseExtractor
constructor
Initialize the base extractor.
Constructor Details
#initialize(output_dir, preserve_paths: true, overwrite: false) ⇒ BaseExtractor
Initialize the base extractor
15 16 17 18 19 |
# File 'lib/cabriolet/extraction/base_extractor.rb', line 15 def initialize(output_dir, preserve_paths: true, overwrite: false) @output_dir = output_dir @preserve_paths = preserve_paths @overwrite = overwrite end |