A
ako...
@attributes = {}
this is something i have never seen. would you explain the 'def' line
above? is this the same as class << @attributes; def << ...; end ?
# Assumes the given object quacks on 'key'
def @attributes.<<( keyed_obj )
(self[keyed_obj.key]||=[])<<keyed_obj
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 ?