Sha256: 78342a8043164d054cbfb99d37d997dbeb7f6ef069fd7e643b024eae962d1126

Contents?: true

Size: 203 Bytes

Versions: 6

Compression:

Stored size: 203 Bytes

Contents

class Hash
  class Indifferent < Normalized

    def initialize(hash={})
      super hash
    end

    private

    def normalize_key(key)
      key.kind_of?(String) ? key.to_sym : key
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hash_ext-0.6.2 lib/hash_ext/indifferent.rb
hash_ext-0.6.1 lib/hash_ext/indifferent.rb
hash_ext-0.6.0 lib/hash_ext/indifferent.rb
hash_ext-0.5.0 lib/hash_ext/indifferent.rb
hash_ext-0.4.0 lib/hash_ext/indifferent.rb
hash_ext-0.3.1 lib/hash_ext/indifferent.rb