Dependency: tighten equality check
This commit is contained in:
parent
6c3ee52d14
commit
0c523da706
@ -17,12 +17,9 @@ class Dependency
|
|||||||
end
|
end
|
||||||
|
|
||||||
def ==(other)
|
def ==(other)
|
||||||
name == other.name
|
|
||||||
end
|
|
||||||
|
|
||||||
def eql?(other)
|
|
||||||
instance_of?(other.class) && name == other.name
|
instance_of?(other.class) && name == other.name
|
||||||
end
|
end
|
||||||
|
alias_method :eql?, :==
|
||||||
|
|
||||||
def hash
|
def hash
|
||||||
name.hash
|
name.hash
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user