From: "Iñaki Baz Castillo" Date: 2008-04-30T23:42:32+09:00 Subject: Re: How to create "def method(item)= (value)" ? 2008/4/30, Chris Hulan : > Create your own Hash subclass? > > def MyBag > > def initialize(parent) > @parent = parent > @theBag = {} > end > > def []=(k,v) > @theBag[k] = v > @parent.modified = true > end Simply great!!! I've learnt a LOT of Ruby magic in this thread, thanks to all for all the solutions :) -- Iñaki Baz Castillo