rexle 0.9.32 → 0.9.33
Sign up to get free protection for your applications and to get access to all the features.
- 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
|