method

size

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.

size()
public

Returns the number of elements in this arithmetic sequence if it is a finite sequence. Otherwise, returns nil.