From: Paul F Fraser on
When a method is undefined, does the code hang around as orphaned code,
or is it garbage collected and totally removed, or some other action
performed?
I am interested in the case of many methods being added for limited use
and the effect on code size and performance.
Paul F Fraser

From: Yukihiro Matsumoto on
Hi,

In message "Re: System handling of undef_method"
on Fri, 19 Feb 2010 09:34:11 +0900, Paul F Fraser <paulf(a)a2zliving.com> writes:

|When a method is undefined, does the code hang around as orphaned code,
|or is it garbage collected and totally removed, or some other action
|performed?

If the method is defined in the undef'ing class, the code will be
garbage collected. If the method is defined in the superclass, it's
just overridden.

matz.