Class: HashWithIndifferentAccess

Inherits:
Hash
  • Object
show all
Defined in:
lib/hash_symbolizer/core_ext/hash_with_indifferent_access.rb

Instance Method Summary collapse

Methods inherited from Hash

#symbolize_keys!

Instance Method Details

#symbolize_keys(recursive = false) ⇒ Object

If recursive is set to true, keys at all levels will be symbolized



5
6
7
# File 'lib/hash_symbolizer/core_ext/hash_with_indifferent_access.rb', line 5

def symbolize_keys(recursive = false)
  to_hash.symbolize_keys(recursive)
end