class BSON::Binary

def ==(other)

Other tags:
    Since: - 2.0.0

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

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

Other tags:
    Example: Check the binary equality. -
def ==(other)
  return false unless other.is_a?(Binary)
  type == other.type && data == other.data
end