Monthnames.rb
This content was produced by an LLM and could include errors.
This script loads the ‘date’ library and accesses the Date::MONTHNAMES constant. This reveals a built-in Ruby array containing the names of the twelve months in order.
require 'date'
#=> true
Date::MONTHNAMES
#=> [nil,
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"]
Ruby 4.0.3