From: Joel VanderWerf Date: 2007-04-10T07:31:58+09:00 Subject: Re: method defined in module doesn't have access to Constant in class it is imported into Mike Sandler wrote: > Does anyone know why a method defined in a module that is then included > in a > class does not have > access to the constants of that class? Doesn't including the module make > all its methods into instance methods > of the class? Shouldn't get_foo and class_get_foo in the following example > work the same? You can make it work as follows: > module ModFoo > def get_foo > FOO self.class::FOO > end > end -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407