End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Comparable#>
obj > other → true or false
compar.c
View on GitHub ↗
static VALUE
cmp_gt(VALUE x, VALUE y)
{
if (cmpint(x, y) > 0) return Qtrue;
return Qfalse;
}
Compares two objects based on the receiver’s <=> method, returning true if it returns a value greater than 0.