method

last

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.

last(p1)
public

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