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.
- data/lib/rexle.rb +1 -0
- 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
|