Module: Hpricot::Node

Defined in:
lib/haml/html.rb

Instance Method Summary collapse

Instance Method Details

#to_haml(tabs = 0) ⇒ Object

Returns the Haml representation of the given node, at the given tabulation.



46
47
48
# File 'lib/haml/html.rb', line 46

def to_haml(tabs = 0)
  parse_text(self.to_s, tabs)
end