Dependency: use instanceof? in eql?
This matches the eql? definition for requirements.
This commit is contained in:
parent
a75aff246e
commit
439a2f4fae
@ -20,7 +20,7 @@ class Dependency
|
|||||||
end
|
end
|
||||||
|
|
||||||
def eql?(other)
|
def eql?(other)
|
||||||
other.is_a?(self.class) && hash == other.hash
|
instance_of?(other.class) && hash == other.hash
|
||||||
end
|
end
|
||||||
|
|
||||||
def hash
|
def hash
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user