method

delete_at

v1_8_7_72 - Show latest stable - Class: Array
delete_at(p1)
public

Deletes the element at the specified index, returning that element, or nil if the index is out of range. See also Array#slice!.

   a = %w( ant bat cat dog )
   a.delete_at(2)    #=> "cat"
   a                 #=> ["ant", "bat", "dog"]
   a.delete_at(99)   #=> nil