method

clear

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

Removes all elements from self.

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