Dependency: use instanceof? in eql?

This matches the eql? definition for requirements.
This commit is contained in:
Jack Nagel 2013-05-25 14:25:24 -05:00
parent a75aff246e
commit 439a2f4fae

View File

@ -20,7 +20,7 @@ class Dependency
end
def eql?(other)
other.is_a?(self.class) && hash == other.hash
instance_of?(other.class) && hash == other.hash
end
def hash