From: Alex Gutteridge Date: 2007-04-11T14:11:16+09:00 Subject: Re: NameError: uninitialized constant Date::ABBR_MONTHS On 11 Apr 2007, at 13:26, Jigar Gosar wrote: > DATE::ABBR_MONTHS exists in this doc here. > http://www.ruby-doc.org/stdlib/libdoc/date/rdoc/index.html > Still I get the error. > >> ruby -v > ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32] > > > irb(main):001:0> require "date" > => true > irb(main):002:0> Date::MONTHNAMES > => [nil, "January", "February", "March", "April", "May", "June", > "July", > "August", "September", "October", "November", "December"] > irb(main):003:0> DATE::ABBR_MONTHS > NameError: uninitialized constant DATE > from (irb):3 > irb(main):004:0> > > > > DATE::ABBR_MONTHS exists in this doc here. > http://www.ruby-doc.org/stdlib/libdoc/date/rdoc/index.html > > And I was using this functionality till ruby 1.8.2 it suddenly stoped > with the upgrade. can these guys just remove stuff without > warning!!! or > am I looking at wrong place? > > Please help > The hint is here: > NameError: uninitialized constant DATE > from (irb):3 Try 'Date::ABBR_MONTHS' Alex Gutteridge Bioinformatics Center Kyoto University