Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/pinport/core_ext/hash.rb
Instance Method Summary collapse
-
#symbolize_keys ⇒ Hash
Returns a hash containing symbolized keys.
Instance Method Details
#symbolize_keys ⇒ Hash
Returns a hash containing symbolized keys
6 7 8 9 10 11 12 13 |
# File 'lib/pinport/core_ext/hash.rb', line 6 def symbolize_keys return nil unless hash result = {} each_key do |key| result[key.to_sym] = self[key] end result end |