class BottomlessHash < Hash
  def initialize
    super &-> h, k { h[k] = self.class.new }
  end

  def self.from_hash(hash)
    new.merge(hash)
  end
end

class Hash
  def bottomless
    BottomlessHash.from_hash(self)
  end
end

module HashEasy
  class BottomlessHash < Hash
    def initialize
      super &-> h, k { h[k] = self.class.new }
    end

    def self.from_hash(hash)
      new.merge(hash)
    end
  end

  class Hash
    def bottomless
      BottomlessHash.from_hash(self)
    end
  end
end

Fix bottomless hash add module
Fix bottomless hash add module
