From: Yukihiro Matsumoto Date: 2006-09-11T23:13:45+09:00 Subject: Re: Constant lookup starting in superclass, not derived class Hi, In message "Re: Constant lookup starting in superclass, not derived class" on Mon, 11 Sep 2006 21:59:21 +0900, "Chris Roos" 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.