Create a Constant out of a String's value

Joshua Muheim wrote:

string = "MyCoolClass"

Now I wanna call MyCoolClass.my_cool_method but I only have the string
"string". You know what I mean?

string.constantize.my_cool_method

Or in plain Ruby:

Object.const_get("MyCoolClass").my_cool_method

Max