Module: Hashie::HashExtensions
- Defined in:
- lib/rakumarket.rb
Instance Method Summary collapse
-
#hashie_symbolify_keys! ⇒ Object
Destructively convert all of the keys of a Hash to their symbol representations.
Instance Method Details
#hashie_symbolify_keys! ⇒ Object
Destructively convert all of the keys of a Hash to their symbol representations.
55 56 57 58 59 60 61 62 |
# File 'lib/rakumarket.rb', line 55 def hashie_symbolify_keys! self.keys.each do |k| unless Symbol === k self[k.to_sym] = self.delete(k) end end self end |