Module: Hpricot::Node
- Defined in:
- lib/haml/html.rb
Overview
Haml monkeypatches various Hpricot classes to add methods for conversion to Haml.
Instance Method Summary collapse
-
#to_haml(tabs, options) ⇒ Object
Returns the Haml representation of the given node.
Instance Method Details
#to_haml(tabs, options) ⇒ Object
Returns the Haml representation of the given node.
56 57 58 |
# File 'lib/haml/html.rb', line 56 def to_haml(tabs, ) parse_text(self.to_s, tabs) end |