From: Pit Capitain Date: 2005-09-27T15:58:46+09:00 Subject: Re: [Q] how to cancel the 'extend' which once has done SHIGETOMI, Takuhiko schrieb: > dear guys, > > is it possible to undo the 'extend' ? > > module X > end > > class C > end > > c = C.new > p c.kind_of?(X) #=> false > c.extend X > p c.kind_of?(X) #=> true > c.decommisson(X) # <- my pseudo instruction to undo the 'extend' > p c.kind_of?(X) #=> false > > best regards, I haven't used it yet, but I think Shin-ichiro Hara's import-module is what you're looking for: http://blade.nagaokaut.ac.jp/~sinara/ruby/import-module Regards, Pit