From: Eric Hodel Date: 2005-05-26T10:27:36+09:00 Subject: Re: Zerofy On 25 May 2005, at 18:10, aartist wrote: > Markus, , you are right on the point. > > month = 5 > month.zerofy! > puts month.class =>String > puts month => 05 > > Is it not possible? No. > I am newbie in Ruby, but I am interested in that heavy juju, you > mentioned. The juju is too heavy. Bulk up on some lighter juju first. (Using the juju when you are a newbie implies that you are probably trying to do something you're not supposed to do.) > ri Fixnum : gives me two important thing. > A. Fixnum objects have immediate value > B. You cannot add a singleton method. > > I would like to know, if you can add destructive method to Fixnum > objects.. Since Fixnum objects are immediate, you can't make any changes to them. -- Eric Hodel - drbrain@segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04