method

clear

v1_8_6_287 - Show latest stable - Class: Array
clear()
public

Removes all elements from self.

   a = [ "a", "b", "c", "d", "e" ]
   a.clear    #=> [ ]