From: Zachary Scott Date: 2013-08-10T21:45:28-04:00 Subject: [ruby-core:56534] Re: [ruby-cvs:49638] zzak:r42496 (trunk): * lib/time.rb: [DOC] Document constants by @markijbema [Fixes GH-377] Fixed by r42503 On Aug 10, 2013, at 3:02 PM, Zachary Scott wrote: > Oops, you're right the example is broken. Thank you for clarifying the visibility of these constants! I will fix this right away! > > On Aug 10, 2013, at 1:56 PM, Tanaka Akira wrote: > >> 2013/8/11 : >>> zzak 2013-08-11 02:44:55 +0900 (Sun, 11 Aug 2013) >>> >>> New Revision: 42496 >>> >>> http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42496 >>> >>> Log: >>> * lib/time.rb: [DOC] Document constants by @markijbema [Fixes GH-377] >>> https://github.com/ruby/ruby/pull/377 >> >> The documented constants are internal and not intended to public. >> >> Also the example code, Time.MonthValue['JAN'], just doesn't work (as intended). >> >> % ./ruby -rtime -e "Time.MonthValue['JAN']" >> -e:1:in `
': undefined method `MonthValue' for Time:Class (NoMethodError) >> -- >> Tanaka Akira