dir-to-xml 0.1.0 → 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/dir-to-xml.rb +7 -1
  2. metadata +1 -1
data/lib/dir-to-xml.rb CHANGED
@@ -15,8 +15,14 @@ class DirToXML
15
15
 
16
16
  a = Dir.glob("*").sort
17
17
  command = a.include?('dir.xml') ? 'run' : 'new_run'
18
- doc, @status = self.send command, a
18
+ @doc, @status = self.send command, a
19
19
  end
20
+
21
+ def to_xml
22
+ @doc.to_s
23
+ end
24
+
25
+ private
20
26
 
21
27
  def new_element(name, text=nil)
22
28
  new_node = Element.new(name)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dir-to-xml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors: []
7
7