xml-registry 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/xml-registry.rb +4 -1
- metadata +1 -1
data/lib/xml-registry.rb
CHANGED
@@ -6,6 +6,8 @@ require 'rexle'
|
|
6
6
|
|
7
7
|
class XMLRegistry
|
8
8
|
|
9
|
+
attr_reader :doc
|
10
|
+
|
9
11
|
def initialize()
|
10
12
|
super()
|
11
13
|
@template = '<root><system/><app/><user/><ip_address/></root>'
|
@@ -50,6 +52,7 @@ class XMLRegistry
|
|
50
52
|
|
51
53
|
def load_xml(s='')
|
52
54
|
@doc = Rexle.new(read(s))
|
55
|
+
self
|
53
56
|
end
|
54
57
|
|
55
58
|
def save(s)
|
@@ -129,4 +132,4 @@ class XMLRegistry
|
|
129
132
|
out
|
130
133
|
end
|
131
134
|
|
132
|
-
end
|
135
|
+
end
|