> =A0Class myClass
> =A0end
>
> =A0myVariable=3D"myClass"
>
> So basically i like to use the content of myVariable to dictate which
> class to instantiate, i.e. doing the same thing as myClass.new but let
> myVariable determines which class i instantiate.

klass =3D Kernel.const_get(myVariable)
foo =3D klass.new

See Module.const_get. Also, you can store a constant reference in a
variable too, so you can have the following too:

my_variable =3D my_class # note, I am not using a string here
foo =3D my_variable.new

P.S : underscored names are preferred over camel case in Ruby :).

--=20
Anurag Priyam
http://about.me/yeban/