Method: Hash#recursively_capitalize_key
- Defined in:
- lib/croesus/core_ext/hash.rb
#recursively_capitalize_key ⇒ Hash
Returns a new Hash, recursively converting all keys to strings and the first letter capitalized.
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 |