Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/check_mobi/core_ext/hash.rb
Instance Method Summary collapse
Instance Method Details
#stringify_keys ⇒ Object
7 8 9 10 |
# File 'lib/check_mobi/core_ext/hash.rb', line 7 def stringify_keys super if defined? Rails self.inject({}){|memo,(k,v)| memo[k.to_s] = v; memo} end |
#symbolize_keys ⇒ Object
2 3 4 5 |
# File 'lib/check_mobi/core_ext/hash.rb', line 2 def symbolize_keys super if defined? Rails self.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} end |