lib/dbee/key_chain.rb in dbee-1.0.3 vs lib/dbee/key_chain.rb in dbee-1.1.0
- old
+ new
@@ -27,10 +27,10 @@
def hash
key_path_set.hash
end
def ==(other)
- key_path_set == other.key_path_set
+ other.instance_of?(self.class) && key_path_set == other.key_path_set
end
alias eql? ==
def ancestor_path?(*parts)
path = parts.flatten.compact.join(KeyPath::SPLIT_CHAR)