From: Hal Fulton Date: 2004-03-04T08:14:35+09:00 Subject: Re: Why do inner methods count in outer scope? Joel VanderWerf wrote: >> Method definitions are scoped the same way as @variables; the new >> method is added to the current instance. It doesn't matter if you do >> it at the > > ^^^^^^^^ > > Not exactly. It can be added to the current class, if that is the scope: > > class A > def foo > def bar; p "BAR"; end > end > end It's still the current instance. The current instance here happens to be a class. Hal