ream out an array with clear: : clear « Array « Ruby






ream out an array with clear:


month = Array.new(12, "month")
month.clear # => []
month.empty? # => true

 

Related examples in the same category