lib/sem4r/extensions.rb
# Return a new hash with all keys converted to symbols.
Return a new hash with all keys converted to symbols.
Return a new hash with all keys converted to symbols .
def symbolize_keys
        inject({}) do |options, (key, value)|
          options[(key.to_sym rescue key) || key] = value
          options
        end
      end
def symbolize_keys inject ( { } ) do | options , ( key , value ) | options [ ( key . to_sym rescue key ) || key ] = value options end end
Return a new hash with all keys converted to symbols.
Return a new hash with all keys converted to symbols .