method

drop

v1_9_1_378 - Show latest stable - Class: Array
drop(p1)
public

Drops first n elements from ary, and returns rest elements in an array.

a = [1, 2, 3, 4, 5, 0]
a.drop(3)             # => [4, 5, 0]