Class: Hash
Overview
Extends Hash with additional helper methods
Instance Method Summary collapse
-
#symbolize_keys ⇒ Hash
Allows for conversion of string keys to symbols.
Instance Method Details
#symbolize_keys ⇒ Hash
Allows for conversion of string keys to symbols
5 6 7 |
# File 'lib/ext/hash.rb', line 5 def symbolize_keys each_with_object({}) { |(k, v), memo| memo[k.to_sym] = v } end |