method

second_to_last

Importance_1
v7.1.3.2 - Show latest stable - 0 notes - Class: Array
second_to_last() public

Equal to self[-2].

%w( a b c d e ).second_to_last # => "d"
Show source
Register or log in to add new notes.