Class: XMLtoHAML

Inherits:
Object
  • Object
show all
Includes:
REXML
Defined in:
lib/xml-to-haml.rb

Instance Method Summary collapse

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_sObject



15
16
17
# File 'lib/xml-to-haml.rb', line 15

def to_s
  @haml
end