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.
- data/lib/dir-to-xml.rb +7 -1
- 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)
|