From: Bernardo Monteiro Rufino Date: 2008-04-29T11:23:27+09:00 Subject: Re: creating and naming variables dynamic ------=_Part_10845_7184411.1209435806858 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline You can try methods instead of dynamic variables, but the best option is the one above with hash. self.class.send(:define_method, type){Object.const_get(type.capitalize);} > -- Bernardo Rufino ------=_Part_10845_7184411.1209435806858--