On Apr 14, 2008, at 8:41 AM, Eust=E1quio 'TaQ' Rangel wrote:
>> At one point in my application I will be referencing the Class name
>> dynamically, I will have it in a String.  So e.g. class =3D =20
>> "Person".  I
>> want to send the Person class the 'find' message (call Person.find).

Also, if you want, you can ditch the string.

[ari: ~] irb
 >>  class Array; def self.say_hi; puts "hi"; end; end
=3D> nil
 >> a =3D Array
=3D> Array
 >> a.say_hihi
=3D> nil
 >> a =3D Object
=3D> Object
 >> a.say_hi
NoMethodError: undefined method `say_hi' for Object:Class
         from (irb):5
         from :0
 >> x
[ari: ~]

Classes are objects too, Remeber....
-------------------------------------------------------|
~ Ari
seydar: it's like a crazy love triangle of Kernel commands and C code