lib/nanoc/base/entities/document.rb in nanoc-4.2.1 vs lib/nanoc/base/entities/document.rb in nanoc-4.2.2

- old
+ new

@@ -67,9 +67,13 @@ contract C::Any => C::Bool def ==(other) other.respond_to?(:identifier) && identifier == other.identifier end - alias eql? == + + contract C::Any => C::Bool + def eql?(other) + other.is_a?(self.class) && identifier == other.identifier + end end end end