From: Gregory Brown Date: 2009-04-01T22:32:49+09:00 Subject: Re: Anything better than klass = eval("#{task_class}") On Wed, Apr 1, 2009 at 9:14 AM, Paganoni wrote: > Hi, well subject is self explanatory... > > Seems a bit to verbose for me but I don't know any other solution to convert > a string containing a class name to a constant of that class name... > Excepted rails way : task_class.camelize.constantize which is verbose too... >> Object.const_get("String") => String -greg -- BOOK: http://rubybestpractices.com TECH: http://blog.majesticseacreature.com NON-TECH: http://metametta.blogspot.com