From: mike leonard Date: 2008-03-09T12:29:56+09:00 Subject: Re: A question on singleton methods On Mar 8, 9:26 pm, mike leonard wrote: > > By the by, I'm not sure redefining a String's #to_s will have any effect. It > > sounds strange - perhaps you're better off building a class for those > > objects and defining to_s on that? > > Agreed. I'm really wanting to redefine #to_s for a String; it was just > the first method that I thought of when I was typing up a minimal > example of what I was trying to do. The important bit was the thing > with the singleton method. Many thanks for your help. > > --Mike Sorry, that should read I'm *not* really wanting to redefine #to_s for a String.