Hi!
Can anybody think of a better way to get the module of a class in a module?
eval(some_class_in_a_module.to_s.gsub(/::[^:]*$/, ''))
Thanks!
Ciao!
Florian
Hi!
Can anybody think of a better way to get the module of a class in a module?
eval(some_class_in_a_module.to_s.gsub(/::[^:]*$/, ''))
Thanks!
Ciao!
Florian