Class: EPUB::Searcher::XHTML
- Inherits:
-
Object
- Object
- EPUB::Searcher::XHTML
- Defined in:
- lib/epub/searcher/xhtml.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Restricted, Seamless
Constant Summary collapse
- ALGORITHMS =
{}
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(element) ⇒ XHTML
constructor
A new instance of XHTML.
Constructor Details
#initialize(element) ⇒ XHTML
Returns a new instance of XHTML.
19 20 21 |
# File 'lib/epub/searcher/xhtml.rb', line 19 def initialize(element) @element = element end |
Class Method Details
.search_text(element, word) ⇒ Array<Result>
13 14 15 |
# File 'lib/epub/searcher/xhtml.rb', line 13 def search_text(element, word) new(element.respond_to?(:root) ? element.root : element).search_text(word) end |