Module: EPUB::Searcher
- Defined in:
- lib/epub/searcher.rb,
lib/epub/searcher/xhtml.rb,
lib/epub/searcher/result.rb,
lib/epub/searcher/publication.rb more...
Defined Under Namespace
Classes: Publication, Result, XHTML
Class Method Summary
collapse
Class Method Details
.search_element(epub, css: nil, xpath: nil, namespaces: {}) ⇒ Object
[View source]
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
[View source]
8
9
10
|
# File 'lib/epub/searcher.rb', line 8
def search_text(epub, word, **options)
Publication.search_text(epub.package, word, options)
end
|