rexle 0.9.32 → 0.9.33
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 +5 -1
- metadata +1 -1
data/lib/rexle.rb
CHANGED
@@ -384,7 +384,11 @@ class Rexle
|
|
384
384
|
|
385
385
|
def add_text(s) @value = s; self end
|
386
386
|
|
387
|
-
def attribute(key)
|
387
|
+
def attribute(key)
|
388
|
+
key = key.to_sym if key.is_a? String
|
389
|
+
@attributes[key].gsub('<','<').gsub('>','>')
|
390
|
+
end
|
391
|
+
|
388
392
|
def attributes() @attributes end
|
389
393
|
def children() @child_elements end
|
390
394
|
def children=(a) @child_elements = a end
|