From: David Vallner Date: 2006-08-23T08:55:23+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. There's also the gotcha of redefining core methods - other core methods just might call directly their implementations in C without going through the interpreter. Try not to rely on core method redefining unless you know you'll always be calling the redefined methods directly. David Vallner