Method: Hash#deep_symbolize_keys!
- Defined in:
- lib/fancybox2/core_ext/hash.rb
#deep_symbolize_keys! ⇒ Object
Destructively convert all keys to symbols, as long as they respond to to_sym. This includes the keys from the root hash and from all nested hashes and arrays.
157 158 159 |
# File 'lib/fancybox2/core_ext/hash.rb', line 157 def deep_symbolize_keys! deep_transform_keys! { |key| key.to_sym rescue key } end |