From: sur max Date: 2006-11-10T21:06:37+09:00 Subject: Re: Dynamic Modules ------=_Part_63356_1794919.1163160394866 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanx Greg !! On 11/10/06, Gregory Seidman wrote: > > 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 > > > -- sur http://ajaxonrails.wordpress.com ------=_Part_63356_1794919.1163160394866--