Class: Excavate::Extractors::Extractor
- Inherits:
-
Object
- Object
- Excavate::Extractors::Extractor
- Defined in:
- lib/excavate/extractors/extractor.rb
Direct Known Subclasses
CabExtractor, CpioExtractor, GzipExtractor, OleExtractor, RpmExtractor, SevenZipExtractor, TarExtractor, XarExtractor, ZipExtractor
Instance Method Summary collapse
- #extract(_target) ⇒ Object
-
#initialize(archive) ⇒ Extractor
constructor
A new instance of Extractor.
Constructor Details
#initialize(archive) ⇒ Extractor
Returns a new instance of Extractor.
4 5 6 |
# File 'lib/excavate/extractors/extractor.rb', line 4 def initialize(archive) @archive = archive end |
Instance Method Details
#extract(_target) ⇒ Object
8 9 10 |
# File 'lib/excavate/extractors/extractor.rb', line 8 def extract(_target) raise NotImplementedError.new("You must implement this method") end |