Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/core_ext/hash_extension.rb
Overview
Extend hash with helpers specificic to this gem.
Instance Method Summary collapse
-
#mm_camelize_keys ⇒ Object
Convert the keys of hashes and arrays of hashes using mm_camelize.
-
#mm_underscore_keys ⇒ Object
Convert the keys of hashes and arrays of hashes using mm_underscore.
- #mm_values_to_h ⇒ Object
Instance Method Details
#mm_camelize_keys ⇒ Object
Convert the keys of hashes and arrays of hashes using mm_camelize
11 12 13 |
# File 'lib/core_ext/hash_extension.rb', line 11 def mm_camelize_keys keys_to_mm_camel(self) end |
#mm_underscore_keys ⇒ Object
Convert the keys of hashes and arrays of hashes using mm_underscore
6 7 8 |
# File 'lib/core_ext/hash_extension.rb', line 6 def mm_underscore_keys keys_to_mm_underscore(self) end |
#mm_values_to_h ⇒ Object
15 16 17 |
# File 'lib/core_ext/hash_extension.rb', line 15 def mm_values_to_h mm_values_to_hashes(self) end |