Class: Hatemile::Util::Html::HTMLDOMParser Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/hatemile/util/html/html_dom_parser.rb

Overview

This class is abstract.

The HTMLDOMParser interface contains the methods for access a native parser.

Direct Known Subclasses

NokogiriLib::NokogiriHTMLDOMParser

Instance Method Summary collapse

Instance Method Details

#clear_parservoid

This method is abstract.

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

This method is abstract.

Create a element.

Parameters:

  • tag (String)

    The tag of element.

Returns:



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

This method is abstract.

Find all elements in the parser by selector.

Parameters:

Returns:



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

This method is abstract.

Find all elements in the parser by selector, ancestors of found elements.

Parameters:

Returns:



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

This method is abstract.

Find all elements in the parser by selector, children of found elements.

Parameters:

Returns:



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

This method is abstract.

Find all elements in the parser by selector, descendants of found elements.

Parameters:

Returns:



64
65
66
# File 'lib/hatemile/util/html/html_dom_parser.rb', line 64

def find_descendants(selector)
  # Interface method
end

#first_resultHatemile::Util::Html::HTMLDOMElement

This method is abstract.

Returns the first element found.

Returns:



87
88
89
# File 'lib/hatemile/util/html/html_dom_parser.rb', line 87

def first_result
  # Interface method
end

#get_htmlString

This method is abstract.

Returns the HTML code of parser.

Returns:

  • (String)

    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_parserObject

This method is abstract.

Returns the parser.

Returns:

  • (Object)

    The parser or root element of the parser.



135
136
137
# File 'lib/hatemile/util/html/html_dom_parser.rb', line 135

def get_parser
  # Interface method
end

#last_resultHatemile::Util::Html::HTMLDOMElement

This method is abstract.

Returns the last element found.

Returns:



97
98
99
# File 'lib/hatemile/util/html/html_dom_parser.rb', line 97

def last_result
  # Interface method
end

#list_resultsArray<Hatemile::Util::Html::HTMLDOMElement>

This method is abstract.

Returns a list with all elements found.

Returns:



107
108
109
# File 'lib/hatemile/util/html/html_dom_parser.rb', line 107

def list_results
  # Interface method
end