End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Range#begin
rng.begin → obj
range.c
View on GitHub ↗
static VALUE
range_begin(VALUE range)
{
return RANGE_BEG(range);
}
Returns the object that defines the beginning of the range.
Example
(1..10).begin #=> 1