<(p1)
public
Returns true if the value of fix is less than that of other.
Show source
/*
* call-seq:
* fix < other => true or false
*
* Returns <code>true</code> if the value of <code>fix</code> is
* less than that of <code>other</code>.
*/
static VALUE
fix_lt(x, y)
VALUE x, y;
{
if (FIXNUM_P(y)) {
long a = FIX2LONG(x), b = FIX2LONG(y);
if (a < b) return Qtrue;
return Qfalse;
}
else {
return rb_num_coerce_relop(x, y);
}
}