class BSON::Undefined

@since 2.0.0
@see bsonspec.org/#/specification<br><br>Represents the Undefined BSON type

def ==(other)

Other tags:
    Since: - 2.0.0

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

Parameters:
  • other (Object) -- The object to check against.

Other tags:
    Example: Check undefined equality. -
def ==(other)
  self.class == other.class
end

def as_extended_json(**options)

Returns:
  • (Hash) - The extended json representation.

Options Hash: (**opts)
  • :mode (nil | :relaxed | :legacy) -- Serialization mode
def as_extended_json(**options)
  { "$undefined" => true }
end

def as_json(*args)

Returns:
  • (nil) - The undefined as nil.

Other tags:
    Example: Get the undefined as a JSON-serializable object. -
def as_json(*args)
  nil
end