Class: EpubWorm::Extractors::Spine
- Inherits:
-
Object
- Object
- EpubWorm::Extractors::Spine
- Extended by:
- Base
- Defined in:
- lib/epub_worm/extractors/spine.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/spine.rb', line 10 def self.extract(path) open_opf(path) do |opf_doc| spine_items = elements_at(opf_doc, "//opf:spine/opf:itemref") build_spine(spine_items, opf_doc, path) end end |