Josselin
6/30/2006 9:25:00 PM
On 2006-06-30 14:17:23 +0200, "danbernier+ruby@gmail.com"
<danbernier@gmail.com> said:
> The only problem with that is you have to use the MyDate class
> everywhere -- if there's a large codebase, that might be a problem.
can you explain a little bit more ? i am a newrubies
> If
> you add the methods to Date directly, that problem's solved.
yes, but what about attribute (myDate_type ..)
I solved my problem with a two-dimensional array.. [[date] , [integer]]
but it's like using a hammer to smash a fly.... better add this
integer value in a date subclass ?