ruby talk
2/24/2005 2:51:00 PM
On Thu, 24 Feb 2005 23:37:26 +0900, David A. Black <dblack@wobblini.net> 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