Return false if RHS does not implement hash_code
This commit is contained in:
parent
45b9c48f03
commit
9da90f0b21
@ -48,6 +48,7 @@ module VagrantPlugins
|
||||
# @param [Vertex]
|
||||
# @return [Boolean]
|
||||
def ==(v)
|
||||
return false if !v.respond_to?(:hash_code)
|
||||
v.hash_code == hash_code
|
||||
end
|
||||
alias_method :eql?, :==
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user