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