Don’t implement PATH#eql?.

This commit is contained in:
Markus Reiter 2017-04-28 11:12:02 +02:00
parent f8ad9d7efd
commit cb1ac3f998

View File

@ -23,7 +23,7 @@ class PATH
end end
alias to_s to_str alias to_s to_str
def eql?(other) def ==(other)
if other.respond_to?(:to_ary) if other.respond_to?(:to_ary)
return true if to_ary == other.to_ary return true if to_ary == other.to_ary
end end
@ -34,7 +34,6 @@ class PATH
false false
end end
alias == eql?
def empty? def empty?
@paths.empty? @paths.empty?