Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/utils/hash_transform_keys.rb
Instance Method Summary collapse
Instance Method Details
#stringify_all_keys ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/utils/hash_transform_keys.rb', line 2 def stringify_all_keys map do |v| case v when Hash, Array v.stringify_all_keys else v end end end |
#symbolize_all_keys ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/utils/hash_transform_keys.rb', line 13 def symbolize_all_keys map do |v| case v when Hash, Array v.symbolize_all_keys else v end end end |