Flowdock
method

symbolize_keys

Importance_1
v4.0.2 - Show latest stable - 0 notes - Class: Hash
symbolize_keys() public

Return a new hash with all keys converted to symbols, as long as they respond to to_sym.

hash = { 'name' => 'Rob', 'age' => '28' }

hash.symbolize_keys
#=> { name: "Rob", age: "28" }
Show source
Register or log in to add new notes.