From: "James G. Britt" Date: 2005-02-24T23:51:26+09:00 Subject: Re: a new delegation technique :-) On Thu, 24 Feb 2005 23:37:26 +0900, David A. Black wrote: > Hi -- > > This probably lies somewhere between obfuscated and pointless, but I > thought it was a fun example of Ruby's nimbleness: > > class C > attr_reader :to_s > def initialize(str) > @to_s = str > end > end > > s = C.new("hello") > puts s # hello > > :-) Ah. I would put it in the pointfuscated group. James