Method: BSON::Undefined#==

Defined in:
lib/bson/undefined.rb

#==(other) ⇒ true, false

Determine if undefined is equal to another object.

Examples:

Check undefined equality.

BSON::Undefined.new == object

Parameters:

  • other (Object)

    The object to check against.

Returns:

  • (true, false)

    If the objects are equal.

Since:

  • 2.0.0



43
44
45
# File 'lib/bson/undefined.rb', line 43

def ==(other)
  self.class == other.class
end