From: "F. Senault" Date: 2009-01-28T03:12:45+09:00 Subject: Re: instantiate a class dynamically Le 24 janvier � 03:16, James Gray a �crit : > On Jan 23, 2009, at 7:28 PM, F. Senault wrote: > >> my_object = Object.const_get(my_string.to_sym).new >> >> (The to_sym is mandatory in ruby 1.9.) > > Na. You are, of course, perfectly right. I should do my tests _after_ the coffee... :) Fred -- GOTO and DO statements considered offensively authoritarian; we suggest you replace them with "please visit" and "would you like to" statements. (Tanuki in the SDM, on politically-correct coding)