rexle 0.5.17 → 0.5.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/rexle.rb +1 -0
  2. metadata +1 -1
data/lib/rexle.rb CHANGED
@@ -151,6 +151,7 @@ class Rexle
151
151
  alias add add_element
152
152
 
153
153
  def add_attribute(h={}) @attributes.merge! h end
154
+ def add_text(s) @value = s; self end
154
155
  def attributes() @attributes end
155
156
  def children() @child_elements end
156
157
  def children=(a) @child_elements = a end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rexle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.17
4
+ version: 0.5.18
5
5
  platform: ruby
6
6
  authors: []
7
7