Method: Array#tail

Defined in:
lib/ruby/jruby_hack.rb

#tailArray

Selects all elements except the first.

Examples:

[1, 2, 3].tail  #=> [2, 3]
[1].tail        #=> []
[].tail         #=> []


45
46
47
48
# File 'lib/ruby/jruby_hack.rb', line 45

def tail
  _, *xs = self
  xs
end