End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Range#inspect
rng.inspect → string
range.c
View on GitHub ↗
static VALUE
range_inspect(VALUE range)
{
return rb_exec_recursive(inspect_range, range, 0);
}
Convert this range object to a printable form (using inspect to convert the begin and end objects).