Class: Array

Inherits:
Object show all
Defined in:
lib/trellis/utils.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#next_to_lastObject



145
146
147
# File 'lib/trellis/utils.rb', line 145

def next_to_last
  self.last(2).first if self.size > 1
end