method

first

ruby latest stable - Class: Enumerator::ArithmeticSequence

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

first(*args)
public

Returns the first number in this arithmetic sequence, or an array of the first n elements.