lib/wiki/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 |hash, (key, val)|
      hash[(key.to_sym rescue key) || key] = val
      hash
    end
  end
def symbolize_keys inject ( { } ) do | hash , ( key , val ) | hash [ ( key . to_sym rescue key ) || key ] = val hash end end
Return a new hash with all keys converted to symbols.
Return a new hash with all keys converted to symbols .