End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Integer#denominator
int.denominator → 1
rational.c
View on GitHub ↗
static VALUE
integer_denominator(VALUE self)
{
return INT2FIX(1);
}
Returns 1.