Class: REXML::Attributes
- Inherits:
-
Object
- Object
- REXML::Attributes
- Defined in:
- lib/violet/helpers.rb
Overview
REXML::Attributes#to_hash seems to be broken.
Instance Method Summary collapse
-
#to_hash ⇒ Object
convert attributes to an instance of Hash.
- #to_hash_old ⇒ Object
Instance Method Details
#to_hash ⇒ Object
convert attributes to an instance of Hash.
18 19 20 21 22 |
# File 'lib/violet/helpers.rb', line 18 def to_hash h = Hash.new self.each { |key,value| h[key.to_sym] = value } h end |
#to_hash_old ⇒ Object
14 |
# File 'lib/violet/helpers.rb', line 14 alias :to_hash_old :to_hash |