second_to_last()
Equal to self[-2].
%w( a b c d e ).second_to_last # => "d"
# File activesupport/lib/active_support/core_ext/array/access.rb, line 89 def second_to_last self[-2] end