method

third_to_last

v6.1.3.1 - Show latest stable - Class: Array
third_to_last()
public

Equal to self[-3].

%w( a b c d e ).third_to_last # => "c"