On 09.01.2008 19:37, Giles Bowkett wrote:
>> Folks, why do you run around implementing something?  The desired
>> behavior *is already present* with Struct.
> 
> I tried your code example, and it didn't work.
> 
> class Note < Struct.new(:channel) ; end
> 
> Note.new(:channel => 2)
> Note.channel # => "{:channel => 2}"
> 
> It just stores the hash.

Argh!!  You are right, I am wrong.  I'm sorry, should have payed 
attention more closely to the output of #inspect.  I think I'll better 
shut up now.

Cheers

	robert