Method: MongoDoc::Document#==
- Defined in:
- lib/mongodoc/document.rb
#==(other) ⇒ Object
34 35 36 37 |
# File 'lib/mongodoc/document.rb', line 34 def ==(other) return false unless self.class === other self.class._attributes.all? {|var| self.send(var) == other.send(var)} end |