Class: Volt::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.



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

def initialize(html)
  @html = html
end

Instance Method Details

#inspectObject



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

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

#to_htmlObject



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

def to_html
  @html
end