Basic question on Date class

From the stdlib docs, I see the Date class has constants like MONTHNAMES, DAYNAMES, etc. How do I print them out?

I tried puts Date.ABBR_DAYNAMES, or d = Date.today; d.ABBR_DAYNAMES, and I get undefined method error.

Robo

Robo wrote:

From the stdlib docs, I see the Date class has constants like
MONTHNAMES, DAYNAMES, etc. How do I print them out?

I tried puts Date.ABBR_DAYNAMES, or d = Date.today; d.ABBR_DAYNAMES, and
I get undefined method error.

Robo

require 'date'

puts Date::ABBR_DAYNAMES

:daz