Module: EPUB::Searcher

Defined in:
lib/epub/searcher.rb,
lib/epub/searcher/xhtml.rb,
lib/epub/searcher/result.rb,
lib/epub/searcher/publication.rb

Defined Under Namespace

Classes: Publication, Result, XHTML

Class Method Summary collapse

Class Method Details

.search_by_cfi(epub, cfi) ⇒ Object



16
17
18
# File 'lib/epub/searcher.rb', line 16

def search_by_cfi(epub, cfi)
  Publication.search_by_cfi(epub.package, cfi)
end

.search_element(epub, css: nil, xpath: nil, namespaces: {}) ⇒ Object



12
13
14
# File 'lib/epub/searcher.rb', line 12

def search_element(epub, css: nil, xpath: nil, namespaces: {})
  Publication.search_element(epub.package, css: css, xpath: xpath, namespaces: namespaces)
end

.search_text(epub, word, **options) ⇒ Object



8
9
10
# File 'lib/epub/searcher.rb', line 8

def search_text(epub, word, **options)
  Publication.search_text(epub.package, word, options)
end