From: Jari Williamsson Date: 2008-02-29T17:20:32+09:00 Subject: Re: Getting number of days in a month > If you look at the documentation for the Time class - > http://www.ruby-doc.org/core/classes/Time.html > it has the following: > > LeapYearMonthDays = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, > 31] > CommonYearMonthDays = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, > 30, 31] > > Why can't I access these constants directly? Perhaps, my Ruby knowledge > is a bit lacking, but I guessed that if I could access that, I could > have just used that :-S Those constants are declared private. Best regards, Jari Williamsson