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.
Files changed (2) hide show
  1. data/lib/rexle.rb +5 -1
  2. 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) @attributes[key] end
387
+ def attribute(key)
388
+ key = key.to_sym if key.is_a? String
389
+ @attributes[key].gsub('&lt;','<').gsub('&gt;','>')
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
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rexle
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.32
5
+ version: 0.9.33
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Robertson