Tom touched on this, but it's because when we include a module into Object, its methods are then available to not only all code at the root level but to all classes that extend Object (i.e. all classes period). Because the method will now exist in ArrayList's hierarchy, method_missing never fires, and we never load the Java version.

On 3/14/06, David Corbin <[EMAIL PROTECTED]> wrote:

But why should defining a mehod "at the outside a class", affect the Object
class?

--
Charles Oliver Nutter @ headius.blogspot.com
JRuby Developer @ jruby.sourceforge.net
Application Architect @ www.ventera.com

Reply via email to