Gary Wright
8/20/2007 7:58:00 PM
On Aug 20, 2007, at 3:50 PM, Ronny wrote:
> I have installed ruby for Mac OS/X. Strangely, the classes Date and
> DateTime
> are not known:
>
> NameError: uninitialized constant DateTime
> from (irb):1
>
> At least some other classes (I tried File and Time) exist, so it is
> not that the
> installation were completely broken.
>
> What could be the problem here?
did you do a
require 'date'
before trying to access Date or DateTime. They are not part of
the Core classes that are automatically defined when Ruby starts up.