module Mongoid::Equality::ClassMethods

Public Instance Methods

===(other) click to toggle source

Performs class equality checking.

@example Compare the classes.

document === other

@param [ Document | Object ] other The other object to compare with.

@return [ true | false ] True if the classes are equal, false if not.

# File lib/mongoid/equality.rb, line 59
def ===(other)
  other.is_a?(self)
end