Method: Range#begin

Defined in:
range.c

#beginObject

Returns the object that defines the beginning of the range.

(1..10).begin   #=> 1

Returns:

[View source]

1001
1002
1003
1004
1005
# File 'range.c', line 1001

static VALUE
range_begin(VALUE range)
{
    return RANGE_BEG(range);
}