From: lucsky@... (Luc Heinrich) Date: 2005-01-17T20:21:13+09:00 Subject: Re: Creating an instance from a variable Peter Hickman wrote: > return klass.new(data) return Kernel.const_get(klass).new(data) Note that const_get will throw an exception if the passed class name is unknown, so be prepared to deal with that. -- Luc Heinrich - lucsky@mac.com