lib/nanoc/base/views/mixins/document_view_mixin.rb in nanoc-4.2.1 vs lib/nanoc/base/views/mixins/document_view_mixin.rb in nanoc-4.2.2

- old
+ new

@@ -16,10 +16,14 @@ # @see Object#== def ==(other) other.respond_to?(:identifier) && identifier == other.identifier end - alias eql? == + + # @see Object#eql? + def eql?(other) + other.is_a?(self.class) && identifier.eql?(other.identifier) + end # @see Object#hash def hash self.class.hash ^ identifier.hash end