Class: Hash

Inherits:
Object show all
Defined in:
lib/awsum/support.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#symbolize_keysObject

Return a new hash with all keys converted to symbols.



75
76
77
78
79
80
# File 'lib/awsum/support.rb', line 75

def symbolize_keys
  inject({}) do |options, (key, value)|
    options[key.to_sym] = value
    options
  end
end