Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/ghtk/support/hash.rb

Instance Method Summary collapse

Instance Method Details

#to_deep_symbolize_keysObject



3
4
5
# File 'lib/ghtk/support/hash.rb', line 3

def to_deep_symbolize_keys
  to_deep_transform_keys { |key| key.to_sym rescue key }
end

#to_deep_transform_keys(&block) ⇒ Object



7
8
9
# File 'lib/ghtk/support/hash.rb', line 7

def to_deep_transform_keys(&block)
  _to_deep_transform_keys_in_object(self, &block)
end