A
Alexander Lamb
Hello,
I am new to this list (and language) but I didn't find my answer from =20=
the documentation available.
I simply would like to do something like:
myObject =3D class.fromName("a_class_name").new
I can do this in Java and Objective-C but didn't find how in Ruby. =20
The idea is to have some configuration files for an activity which =20
contain a class name to instantiate depending on the activity.
Many thanks (and sorry if this is an obvious question),
--
Alexander Lamb
Service d'Informatique M=E9dicale
H=F4pitaux Universitaires de Gen=E8ve
(e-mail address removed)
+41 22 372 88 62
+41 79 420 79 73
I am new to this list (and language) but I didn't find my answer from =20=
the documentation available.
I simply would like to do something like:
myObject =3D class.fromName("a_class_name").new
I can do this in Java and Objective-C but didn't find how in Ruby. =20
The idea is to have some configuration files for an activity which =20
contain a class name to instantiate depending on the activity.
Many thanks (and sorry if this is an obvious question),
--
Alexander Lamb
Service d'Informatique M=E9dicale
H=F4pitaux Universitaires de Gen=E8ve
(e-mail address removed)
+41 22 372 88 62
+41 79 420 79 73