From: Joel VanderWerf Date: 2006-08-23T08:21:05+09:00 Subject: Re: How can't i modify the to_s method in Integer Class? Grab Mail wrote: > class Integer > > def to_s > '9' > end > > end > > puts 5.to_s > > I'm still getting 5. > #to_s is defined in Fixnum, a subclass of Integer. Try this: class Fixnum def to_s '9' end end puts 5.to_s -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407