ruby convert class name in string to actual class January 1, 2023 by Tarik I think what you want is constantize That’s an RoR construct. I don’t know if there’s one for ruby core