Class: Hatemile::Util::Html::HTMLDOMParser Abstract
- Inherits:
-
Object
- Object
- Hatemile::Util::Html::HTMLDOMParser
- Defined in:
- lib/hatemile/util/html/html_dom_parser.rb
Overview
The HTMLDOMParser interface contains the methods for access a native parser.
Direct Known Subclasses
Instance Method Summary collapse
-
#clear_parser ⇒ void
abstract
Clear the memory of this object.
-
#create_element(tag) ⇒ Hatemile::Util::Html::HTMLDOMElement
abstract
Create a element.
-
#find(selector) ⇒ Hatemile::Util::Html::HTMLDOMParser
abstract
Find all elements in the parser by selector.
-
#find_ancestors(selector) ⇒ Hatemile::Util::Html::HTMLDOMParser
abstract
Find all elements in the parser by selector, ancestors of found elements.
-
#find_children(selector) ⇒ Hatemile::Util::Html::HTMLDOMParser
abstract
Find all elements in the parser by selector, children of found elements.
-
#find_descendants(selector) ⇒ Hatemile::Util::Html::HTMLDOMParser
abstract
Find all elements in the parser by selector, descendants of found elements.
-
#first_result ⇒ Hatemile::Util::Html::HTMLDOMElement
abstract
Returns the first element found.
-
#get_html ⇒ String
abstract
Returns the HTML code of parser.
-
#get_parser ⇒ Object
abstract
Returns the parser.
-
#last_result ⇒ Hatemile::Util::Html::HTMLDOMElement
abstract
Returns the last element found.
-
#list_results ⇒ Array<Hatemile::Util::Html::HTMLDOMElement>
abstract
Returns a list with all elements found.
Instance Method Details
#clear_parser ⇒ void
This method returns an undefined value.
Clear the memory of this object.
144 145 146 |
# File 'lib/hatemile/util/html/html_dom_parser.rb', line 144 def clear_parser # Interface method end |
#create_element(tag) ⇒ Hatemile::Util::Html::HTMLDOMElement
Create a element.
117 118 119 |
# File 'lib/hatemile/util/html/html_dom_parser.rb', line 117 def create_element(tag) # Interface method end |
#find(selector) ⇒ Hatemile::Util::Html::HTMLDOMParser
Find all elements in the parser by selector.
38 39 40 |
# File 'lib/hatemile/util/html/html_dom_parser.rb', line 38 def find(selector) # Interface method end |
#find_ancestors(selector) ⇒ Hatemile::Util::Html::HTMLDOMParser
Find all elements in the parser by selector, ancestors of found elements.
77 78 79 |
# File 'lib/hatemile/util/html/html_dom_parser.rb', line 77 def find_ancestors(selector) # Interface method end |
#find_children(selector) ⇒ Hatemile::Util::Html::HTMLDOMParser
Find all elements in the parser by selector, children of found elements.
51 52 53 |
# File 'lib/hatemile/util/html/html_dom_parser.rb', line 51 def find_children(selector) # Interface method end |
#find_descendants(selector) ⇒ Hatemile::Util::Html::HTMLDOMParser
Find all elements in the parser by selector, descendants of found elements.
64 65 66 |
# File 'lib/hatemile/util/html/html_dom_parser.rb', line 64 def find_descendants(selector) # Interface method end |
#first_result ⇒ Hatemile::Util::Html::HTMLDOMElement
Returns the first element found.
87 88 89 |
# File 'lib/hatemile/util/html/html_dom_parser.rb', line 87 def first_result # Interface method end |
#get_html ⇒ String
Returns the HTML code of parser.
126 127 128 |
# File 'lib/hatemile/util/html/html_dom_parser.rb', line 126 def get_html # Interface method end |
#get_parser ⇒ Object
Returns the parser.
135 136 137 |
# File 'lib/hatemile/util/html/html_dom_parser.rb', line 135 def get_parser # Interface method end |
#last_result ⇒ Hatemile::Util::Html::HTMLDOMElement
Returns the last element found.
97 98 99 |
# File 'lib/hatemile/util/html/html_dom_parser.rb', line 97 def last_result # Interface method end |
#list_results ⇒ Array<Hatemile::Util::Html::HTMLDOMElement>
Returns a list with all elements found.
107 108 109 |
# File 'lib/hatemile/util/html/html_dom_parser.rb', line 107 def list_results # Interface method end |