Class: HtmlNode

Inherits:
BaseNode show all
Defined in:
lib/volt/page/targets/binding_document/html_node.rb

Instance Method Summary collapse

Constructor Details

#initialize(html) ⇒ HtmlNode

Returns a new instance of HtmlNode.



4
5
6
# File 'lib/volt/page/targets/binding_document/html_node.rb', line 4

def initialize(html)
  @html = html
end

Instance Method Details

#inspectObject



12
13
14
# File 'lib/volt/page/targets/binding_document/html_node.rb', line 12

def inspect
  "<HtmlNode #{@html.inspect}>"
end

#to_htmlObject



8
9
10
# File 'lib/volt/page/targets/binding_document/html_node.rb', line 8

def to_html
  @html
end