Module: Mongoid::Equality::ClassMethods

Defined in:
lib/mongoid/equality.rb

Instance Method Summary collapse

Instance Method Details

#===(other) ⇒ true | false

Performs class equality checking.

Examples:

Compare the classes.

document === other


60
61
62
# File 'lib/mongoid/equality.rb', line 60

def ===(other)
  other.is_a?(self)
end