xml-to-haml 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/xml-to-haml.rb +7 -1
  2. metadata +1 -1
@@ -9,9 +9,15 @@ class XMLtoHAML
9
9
 
10
10
  def initialize(s)
11
11
  doc = Document.new(s)
12
- xml_to_haml(doc)
12
+ @haml = xml_to_haml(doc)
13
13
  end
14
14
 
15
+ def to_s
16
+ @haml
17
+ end
18
+
19
+ private
20
+
15
21
  def xml_to_haml(nodex, indent ='')
16
22
 
17
23
  nodex.elements.each do |node|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xml-to-haml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors: []
7
7