Module: Mongoid::Equality::ClassMethods
- Defined in:
- lib/mongoid/equality.rb
Instance Method Summary collapse
-
#===(other) ⇒ true | false
Performs class equality checking.
Instance Method Details
#===(other) ⇒ true | false
Performs class equality checking.
74 75 76 77 78 79 80 |
# File 'lib/mongoid/equality.rb', line 74 def ===(other) if Mongoid.legacy_triple_equals other.class == Class ? self <= other : other.is_a?(self) else other.is_a?(self) end end |