Method: MongoDoc::Document#==
- Defined in:
- lib/mongo_doc/document.rb
#==(other) ⇒ Object
54 55 56 57 |
# File 'lib/mongo_doc/document.rb', line 54 def ==(other) return false unless self.class === other self.class._attributes.all? {|var| self.send(var) == other.send(var)} end |