ary.clear â ary
Instance Public methods
Removes all elements from self
.
1 2 | a = [ "a" , "b" , "c" , "d" , "e" ] a.clear #=> [ ] |
Removes all elements from self
.
1 2 | a = [ "a" , "b" , "c" , "d" , "e" ] a.clear #=> [ ] |
Designed by : w10schools
service@w10schools.com
Please login to continue.