lib/epubmaker/content.rb in review-1.6.0 vs lib/epubmaker/content.rb in review-1.7.0

- old
+ new

@@ -58,15 +58,15 @@ @chaptype = chaptype end complement end - def ==(obj) - if self.class != obj.class + def ==(other) + if self.class != other.class return false end [self.id, self.file, self.media, self.title, self.level, self.notoc, self.chaptype, self.properties] == - [obj.id, obj.file, obj.media, obj.title, obj.level, obj.notoc, obj.chaptype, obj.properties] + [other.id, other.file, other.media, other.title, other.level, other.notoc, other.chaptype, other.properties] end private # Complement other parameters by using file parameter.