Don’t implement PATH#eql?.
This commit is contained in:
parent
f8ad9d7efd
commit
cb1ac3f998
@ -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?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user