From: Abder-Rahman Ali Date: 2010-08-23T23:59:39+09:00 Subject: Re: Class initialization Andrew Wagner wrote: > So somewhere (at least conceptually) there's a definition that goes > something like this: > > class Object > def to_s > class_name = self.class.name > reference = self.memory_reference > " \#<#{class_name}:#{reference}>" > end > end > > On Mon, Aug 23, 2010 at 10:30 AM, Abder-Rahman Ali < Oh, I see, and I override it when I define to_s in the class. Thanks a lot. -- Posted via http://www.ruby-forum.com/.