<=>(p1)
public
Returns zero if num equals other, nil otherwise.
Show source
/*
* call-seq:
* num <=> other -> 0 or nil
*
* Returns zero if <i>num</i> equals <i>other</i>, <code>nil</code>
* otherwise.
*/
static VALUE
num_cmp(x, y)
VALUE x, y;
{
if (x == y) return INT2FIX(0);
return Qnil;
}