From: Jigar Gosar Date: 2007-04-16T04:03:38+09:00 Subject: Re: NameError: uninitialized constant Date::ABBR_MONTHS Well I get same error with Date::ABBR_MONTHS, installed latest ruby version 1.8.6 and typed in irb. guys is it working for you with 1.8.6 please let me know irb(main):001:0> require "date" => true irb(main):002:0> Date::ABBR_MONTHS NameError: uninitialized constant Date::ABBR_MONTHS from (irb):2 irb(main):003:0> RUBY_VERSION => "1.8.6" irb(main):004:0> thanks. Brian Candler wrote: > On Wed, Apr 11, 2007 at 01:26:00PM +0900, Jigar Gosar wrote: >> DATE::ABBR_MONTHS exists in this doc here. >> http://www.ruby-doc.org/stdlib/libdoc/date/rdoc/index.html > > I don't see DATE::ABBR_MONTHS anywhere there. Can you point out > *exactly* > what you clicked to see this? It's probably a typo, it obviously should > be > Date::ABBR_MONTHS > >> 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? > > irb(main):001:0> require 'date' > => true > irb(main):002:0> Date::ABBR_MONTHS > => {"oct"=>10, "jul"=>7, "jan"=>1, "dec"=>12, "jun"=>6, "apr"=>4, > "feb"=>2, > "may"=>5, "sep"=>9, "aug"=>8, "mar"=>3, "nov"=>11} > irb(main):003:0> RUBY_VERSION > => "1.8.4" -- Posted via http://www.ruby-forum.com/.