Hi,

In message "Re: Constant lookup starting in superclass, not derived class"
    on Mon, 11 Sep 2006 21:59:21 +0900, "Chris Roos" <chrisjroos / gmail.com> writes:

|I'm no doubt missing something obvious but I found this a little
|confusing.  I would have expected the constant lookup to start in Bar
|and therefore succeed.  Instead, it appears to start in Base where Foo
|is not defined.
|
|class Base
|  def foo
|    p Foo
|  end
|end

use "self.class::Foo" instead of plain "Foo".

							matz.