Method: Array#rest

Defined in:
lib/list-utils.rb

#restObject Also known as: tail

Returns all elements of the Array in order except the first.



73
74
75
# File 'lib/list-utils.rb', line 73

def rest
  self[ 1 .. -1 ]
end