D'oh!

Of course, because Kernel.method() is only returning a Method object, but
not actually calling that method.

I think my confusion was because the only places I have ever used method(),
I have in fact used it like this:

method(methodName).call(*args)

...so I guess I had stopped thinking about the Method object *as an object*
at all.

Cool.


----- Original Message -----
From: "ts" <decoux / moulon.inra.fr>
Newsgroups: comp.lang.ruby
Sent: Tuesday, November 19, 2002 9:36 AM
Subject: Re: Kernel.method() question


>>>>> "C" == Chris  <nemo / hellotree.com> writes:

C> I was just wondering, why doesn't Kernel.method() call method_missing()
when
C> it can't find a method, instead of raising a NameError?

 Well, probably you make a confusion

<snip>