Method: Hash#recursively_capitalize_key

Defined in:
lib/croesus/core_ext/hash.rb

#recursively_capitalize_keyHash

Returns a new Hash, recursively converting all keys to strings and the first letter capitalized.

Returns:



127
128
129
# File 'lib/croesus/core_ext/hash.rb', line 127

def recursively_capitalize_key
  recursively_transform_keys { |key| key.to_s.capitalize rescue key }
end