From: Florian Weber Date: 2006-03-27T00:29:26+09:00 Subject: Getting the module of a class 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