From: Florian Gross Date: 2005-01-17T23:01:08+09:00 Subject: Re: Creating an instance from a variable Peter Hickman wrote: > I have a class like this: > > class Builder > def Builder.create( klass, data ) > return klass.new(data) > end > end > > I want to call it as: > > x = Builder.create( "Fred", data ) Why don't just do x = Builder.create(Fred, data)?