From: ts Date: 2004-11-14T02:09:56+09:00 Subject: Re: Getting Module from Symbol >>>>> "B" == Brian =?ISO-8859-15?Q?Schr=F6der?= writes: B> Ah, thanks. I thought that as I were in Kernel, and Kernel is a Object, B> I could use const_get directly. at top level self is an instance of Object, this is why it give an error in your case uln% ruby -e 'module M end; p self.const_get(:M)' -e:1: undefined method `const_get' for main:Object (NoMethodError) uln% B> But I imagine that it is a module method, and as such the receiver is B> the class btw. module not the instance (kernel). Correct? well #const_get is defined in Module but probably you don't need to see what follow :-) uln% ruby -e 'module M end; p Kernel.const_get(:M)' M uln% uln% ruby -e 'module M end; p Object.const_get(:M)' M uln% uln% ruby -e 'module M end; p Array.const_get(:M)' M uln% Guy Decoux