From: Pedro Del Gallego Date: 2007-02-26T22:02:56+09:00 Subject: Re: Methods and :parameters Wow ... thats exactly what i was looking for :). Can you explain me how this override of the method_missing works? im a little bit lost right after the when statament begin ... > def method_missing(id, *args) > prop = id.id2name > case args.length > when 1 > if prop[-1] == ?= > self[prop[0..-2]] = args[0] > args[0] > else > self[prop] = args[0] > self > end > when 0 > self[prop] > else > super(id, *args) > end > end > Thanks again. -- ------------------------------------- Pedro Del Gallego Email : pedro.delgallego@gmail.com