# File lib/hashery/path_hash.rb, line 180
    def ==(other)
      case other
      when SlashedHash
        @slashed == other.instance_variable_get(:@slashed)
      when Hash
        self == SlashedHash.new(other)
      else
        raise TypeError, "Cannot compare #{other.class.name} with SlashedHash"
      end
    end