Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/core_ext/hash_extension.rb

Overview

Extend hash with helpers specificic to this gem.

Instance Method Summary collapse

Instance Method Details

#mm_camelize_keysObject

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_keysObject

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_hObject



15
16
17
# File 'lib/core_ext/hash_extension.rb', line 15

def mm_values_to_h
  mm_values_to_hashes(self)
end