Mega Code Archive

 
Categories / Ruby / Array
 

Array new creates an empty array, represented as [], named months

# test whether an array is empty or not with the empty? method  months = Array.new months.empty? # => true