Gregory Seidman
11/10/2006 12:01:00 PM
On Fri, Nov 10, 2006 at 05:23:14PM +0900, sur max wrote:
} We can dynamically include a module in a class as...
[...]
} a = A.new
} a.class.send :include, B
}
} Is there any way to remove the dynamically included module from a class.
In short, no. The language does not allow removing mixins any more than it
allows removing a class's superclass. Individual methods can be removed,
however, using undef or remove_method.
} sur
--Greg