Dependency: tighten equality check
This commit is contained in:
parent
6c3ee52d14
commit
0c523da706
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user