Method: Comparable#==

Defined in:
compar.c

#==(other) ⇒ Boolean

Compares two objects based on the receiver’s <=> method, returning true if it returns 0. Also returns true if obj and other are the same object.

Returns:

  • (Boolean)


81
82
83
# File 'compar.c', line 81

static VALUE
cmp_equal(x, y)
VALUE x, y;