Define an array of strings is with the %w notation.
# It assumes that all elements are strings (even nil)
months = %w[ nil January February March April May June July August September
October November December ]
# This produces the array months:
# ["nil", "January", "February", "March", "April", "May", "June", "July", "August",
# "September", "October", "November", "December"]
Related examples in the same category