Dependency: tighten equality check

This commit is contained in:
Jack Nagel 2013-11-05 16:02:26 -06:00
parent 6c3ee52d14
commit 0c523da706

View File

@ -17,12 +17,9 @@ class Dependency
end
def ==(other)
name == other.name
end
def eql?(other)
instance_of?(other.class) && name == other.name
end
alias_method :eql?, :==
def hash
name.hash