Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/settings_hash.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#symbolize_keys ⇒ Object
from ActiveSupport lib/active_support/core_ext/hash/keys.rb line 22-27.
Instance Method Details
#symbolize_keys ⇒ Object
from ActiveSupport lib/active_support/core_ext/hash/keys.rb line 22-27
28 29 30 31 32 33 |
# File 'lib/settings_hash.rb', line 28 def symbolize_keys inject({}) do |, (key, value)| [(key.to_sym rescue key) || key] = value end end |