Class: Hash

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#symbolize_keysObject

Return a new hash with all keys converted to symbols.



96
97
98
99
100
101
# File 'lib/awsbase/support.rb', line 96

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