On Sun, 9 Dec 2001, David Alan Black wrote:

> > module M
> >  C = 2
> >  def c
> >   puts C
> >  end
> > end
> > class A; end
> > a=A.new
> > a.extend M
> > a.c # => 2
>
> Isn't it just that method c is defined in a context where C is in
> scope?

If it is just a scoping problem, then when why can't you do:
a::C ?
or
a::M::C ?


Jim


=========================================================
Jim Freeze
jim / freeze.org
---------------------------------------------------------
Today is a fine day for Ruby programming.
http://www.freeze.org
=========================================================