class BSON::DbPointer

def ==(other)

Returns:
  • (true | false) - If the objects are equal

Parameters:
  • other (Object) -- The object to compare against.
def ==(other)
  return false unless other.is_a?(DbPointer)
  ref == other.ref && id == other.id
end