method

clear

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

Removes all elements from self.

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