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.
Files changed (2) hide show
  1. data/lib/xml-registry.rb +4 -1
  2. 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
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: xml-registry
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.8
5
+ version: 0.1.9
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Robertson