From: Patrick Spence Date: 2007-03-08T22:57:29+09:00 Subject: Re: How do I instantiate a class who's name is dynamic? Marcin Miel甜y顛ski wrote: > dblack@wobblini.net wrote: > >> David >> > > I know that eval is not save but it appears that it is much faster than > inject version Just out of curosity, how is "eval()" not safe? I'm doing something very similar to the OP and have adopted the Object.const_get() approach as suggested by David. I'd like to get a better understanding of why this is the preferred method. -- Posted via http://www.ruby-forum.com/.