From: CT Date: 2005-01-17T20:22:30+09:00 Subject: Re: Creating an instance from a variable I'm not sure if this is what you want, but I think Kernel.const_get can help you. See changes below: On Mon, 17 Jan 2005 19:54:47 +0900, Peter Hickman wrote: > class Builder > def Builder.create( klass, data ) return Kernel.const_get(klass).new(data) #can pass in a string > end > end > You might wanna do some error-catching too. HTH! CT