xml-to-haml 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
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