class Hash::Indifferent

Public Class Methods

new(hash={}) click to toggle source
Calls superclass method
# File lib/hash_ext/indifferent.rb, line 4
def initialize(hash={})
  super hash
end

Private Instance Methods

normalize_key(key) click to toggle source
# File lib/hash_ext/indifferent.rb, line 10
def normalize_key(key)
  key.kind_of?(String) ? key.to_sym : key
end