Core Date or no Date?

Is there a core Date class or not?

$ irb

Date
=> Date

Date.instance_methods(false)
=> []

Date.methods(false)
=> []

Date.private_instance_methods(false)
=> []

Huh? And the only documentation I can find is on the ‘date.rb’
standard library.

T.

P.S. Why can’t ri isolate core from everything else?

On Sep 1, 2008, at 9:53 AM, Trans wrote:

Is there a core Date class or not?

No.

$ irb

Date
=> Date

It’s not a good idea to use irb to answer these kinds of questions,
since it loads a bunch of code:

$ ruby -ve ‘p Date’
ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-darwin9.4.0]
-e:1: uninitialized constant Date (NameError)

James Edward G. II

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs