class Hatemile::Util::Html::HTMLDOMNode
The HTMLDOMNode
interface contains the methods for access the Node.
@abstract
Public Instance Methods
Append a text content in node.
@abstract @param text [String] The text content. @return [Hatemile::Util::Html::HTMLDOMNode] This node.
# File lib/hatemile/util/html/html_dom_node.rb, line 86 def append_text(text) # Interface method end
Returns the native object of this node.
@abstract @return [Object] The native object of this node.
# File lib/hatemile/util/html/html_dom_node.rb, line 115 def get_data # Interface method end
Returns the parent element of this node.
@abstract @return [Hatemile::Util::Html::HTMLDOMElement] The parent element of
this node.
# File lib/hatemile/util/html/html_dom_node.rb, line 106 def get_parent_element # Interface method end
Returns the text content of node.
@abstract @return [String] The text content of node.
# File lib/hatemile/util/html/html_dom_node.rb, line 34 def get_text_content # Interface method end
Insert a node after this node.
@abstract @param new_node [Hatemile::Util::Html::HTMLDOMNode] The node that be
inserted.
@return [Hatemile::Util::Html::HTMLDOMNode] This node.
# File lib/hatemile/util/html/html_dom_node.rb, line 56 def insert_after(new_node) # Interface method end
Insert a node before this node.
@abstract @param new_node [Hatemile::Util::Html::HTMLDOMNode] The node that be
inserted.
@return [Hatemile::Util::Html::HTMLDOMNode] This node.
# File lib/hatemile/util/html/html_dom_node.rb, line 45 def insert_before(new_node) # Interface method end
Prepend a text content in node.
@abstract @param text [String] The text content. @return [Hatemile::Util::Html::HTMLDOMNode] This node.
# File lib/hatemile/util/html/html_dom_node.rb, line 96 def prepend_text(text) # Interface method end
Remove this node of the parser.
@abstract @return [Hatemile::Util::Html::HTMLDOMNode] This node.
# File lib/hatemile/util/html/html_dom_node.rb, line 65 def remove_node # Interface method end
Replace this node for other node.
@abstract @param new_node [Hatemile::Util::Html::HTMLDOMNode] The node that
replace this node.
@return [Hatemile::Util::Html::HTMLDOMNode] This node.
# File lib/hatemile/util/html/html_dom_node.rb, line 76 def replace_node(new_node) # Interface method end
Modify the native object of this node.
@abstract @param data [Object] The native object of this node. @return [void]
# File lib/hatemile/util/html/html_dom_node.rb, line 125 def set_data(data) # Interface method end