From: Im still Date: 2009-08-20T12:12:02+09:00 Subject: Re: Class name as a variable --001485016fe455d38c04718a1d86 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 2009/8/20 Bertram Scharpf > Hi, > > Am Donnerstag, 20. Aug 2009, 04:07:06 +0900 schrieb Im still: > > > > a = eval(" #{a_variable}.abc ") > > > > My question is, is there any better (or nicer) way to doing this? > > [untested] > > What you are doing is > > a = eval a_variable.to_s.abc.to_s > > You probably meant > > a = eval a_variable.abc.to_s > > or even something else. > > Bertram > > > -- > Bertram Scharpf > Stuttgart, Deutschland/Germany > http://www.bertram-scharpf.de > > ======================= Hi Bertram Scharpf I think you didn't get me well. But thank you for the same for replying :) --001485016fe455d38c04718a1d86--