module Thoran::Array::AllButLast

Public Instance Methods

all_but_last() click to toggle source
# File lib/Thoran/Array/AllButLast/all_but_last.rb, line 18
def all_but_last
  d = self.dup
  d.last!
  d
end