From: Peter Hickman Date: 2005-01-17T19:54:47+09:00 Subject: Creating an instance from a variable 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 ) and get a object of type Fred. I'm sure you can see what I am trying to do but for the life of me I can't get the syntax correct.