Class: XMLtoHAML
Instance Method Summary collapse
-
#initialize(s) ⇒ XMLtoHAML
constructor
A new instance of XMLtoHAML.
- #to_s ⇒ Object
Constructor Details
#initialize(s) ⇒ XMLtoHAML
Returns a new instance of XMLtoHAML.
10 11 12 13 |
# File 'lib/xml-to-haml.rb', line 10 def initialize(s) doc = Document.new(s) @haml = xml_to_haml(doc) end |
Instance Method Details
#to_s ⇒ Object
15 16 17 |
# File 'lib/xml-to-haml.rb', line 15 def to_s @haml end |