Class: Excavate::Extractors::ZipExtractor

Inherits:
Extractor
  • Object
show all
Defined in:
lib/excavate/extractors/zip_extractor.rb

Instance Method Summary collapse

Methods inherited from Extractor

eager_load_subclasses!, for_magic_type, handles, #initialize, registered_types, registry

Constructor Details

This class inherits a constructor from Excavate::Extractors::Extractor

Instance Method Details

#extract(target) ⇒ Object



10
11
12
13
14
# File 'lib/excavate/extractors/zip_extractor.rb', line 10

def extract(target)
  reader = Omnizip::Formats::Zip::Reader.new(@archive)
  reader.read
  reader.extract_all(target)
end