From: "ako..." Date: 2005-11-23T08:27:25+09:00 Subject: Re: what is the ruby way to do this? > @attributes = {} > > # Assumes the given object quacks on 'key' > def @attributes.<<( keyed_obj ) > (self[keyed_obj.key]||=[])< end > > @attributes << a1 > @attributes << a2 > @attributes << a3 this is something i have never seen. would you explain the 'def' line above? is this the same as class << @attributes; def << ...; end ?