From: Bertram Scharpf Date: 2009-08-20T11:18:31+09:00 Subject: Re: Class name as a variable 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