Module: Cassandra::Mapper::Utility::Hash

Extended by:
Hash
Included in:
Hash
Defined in:
lib/cassandra/mapper/utility/hash.rb

Instance Method Summary collapse

Instance Method Details

#stringify_keys(hash) ⇒ Object



9
10
11
# File 'lib/cassandra/mapper/utility/hash.rb', line 9

def stringify_keys(hash)
  map_hash_key hash, &:to_s
end

#symbolize_keys(hash) ⇒ Object



5
6
7
# File 'lib/cassandra/mapper/utility/hash.rb', line 5

def symbolize_keys(hash)
  map_hash_key hash, &:to_sym
end