From: ts Date: 2004-11-14T01:19:55+09:00 Subject: Re: Getting Module from Symbol >>>>> "B" == Brian =?ISO-8859-15?Q?Schr=F6der?= writes: B> I want to use methods in different modules depending on commandline switches. So I thought i'd use B> module Module1 B> module SubModule1 B> def foo() end module_function :foo B> end [...] B> m1 = Module1 B> m2 = SubModule1 B> m1::m2::foo() m1 = Module1 m2 = m1.const_get(:SubModule1) m2::foo Guy Decoux