From: Logan Capaldo Date: 2006-07-11T05:13:42+09:00 Subject: Re: two Date classes? On Jul 10, 2006, at 10:31 AM, Mark Volkmann wrote: > It seems that there is a Date class in the core library and the > standard library. Is this correct? The following code > > --- > > core = Date.methods.sort > > require 'date' > std = Date.methods.sort > > puts "methods in std Date that aren't in core Date" > puts std - core > > --- > > outputs lots of method names. > > Pickaxe doesn't document a Date class in the core libraries. > Does anybody know why there are two classes named Date in the standard > Ruby distribution? > There aren't. If you have rubygems in your RUBYOPT (or similiar) it pulls in time.rb which adds some methods to the Date class (and changes it's behavior slightly). This could be what you are seeing. > -- > R. Mark Volkmann > Object Computing, Inc. >