From: pjb@... (Pascal J. Bourguignon) Date: 2009-02-06T13:24:41+09:00 Subject: Re: Method Precedence Daly writes: > I'm doing this as a learning experiment. I would have thought that > since self inside method one is an object, then two inside one would > be defined on the object, not on the class. > > Phlip's explanation made it clear to me though. It's as if I opened > the class and redefined two, correct? Yes. def ... end is not a definition. It's an expression. It is executed, and it has side effects. -- __Pascal Bourguignon__