Method: Mongoid::Document::ClassMethods#===
- Defined in:
- lib/mongoid/document.rb
#===(other) ⇒ true, false
Performs class equality checking.
282 283 284 |
# File 'lib/mongoid/document.rb', line 282 def ===(other) other.class == Class ? self <= other : other.is_a?(self) end |