Class: EpubWorm::Extractors::Manifest
- Inherits:
-
Object
- Object
- EpubWorm::Extractors::Manifest
- Extended by:
- Base
- Defined in:
- lib/epub_worm/extractors/manifest.rb
Constant Summary
Constants included from Base
Class Method Summary collapse
Methods included from Base
as_xml, element_at, elements_at, extended, ns, ns_entry, open_opf, text_at
Class Method Details
.extract(path) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/epub_worm/extractors/manifest.rb', line 10 def self.extract(path) open_opf(path) do |opf_doc| manifest_items = elements_at(opf_doc, "//opf:manifest/opf:item") build_manifest(manifest_items, path) end end |