Sha256: b696a8bd716151e626bbdffffd7ea29c94ffe49f18b9d97e35769832b04ee792

Contents?: true

Size: 185 Bytes

Versions: 2

Compression:

Stored size: 185 Bytes

Contents

class Hash
  class Nested < Hash

    include DeepFreezable

    def [](key)
      if key? key 
        super(key)
      else
        self[key] = Nested.new
      end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hash_ext-0.6.0 lib/hash_ext/nested.rb
hash_ext-0.5.0 lib/hash_ext/nested.rb