From: Ed Sinjiashvili Date: 2002-04-01T21:28:42+09:00 Subject: Re: re-extending object ts writes: > >>>>> "E" == Ed Sinjiashvili writes: > > E> Thanx for the snippet, I used similar scheme, but without automated > E> #method_missing dispath. Still my question was - Could I use *Module* > E> mixins to implement that pattern? > > When you call #include or #extend, ruby first check if the module exist in > the ancestors. If it's found it don't try to include it > > /* ignore if the module included already in superclasses */ Yes, I've seen this in rb_include_module. But if you look at *my* stupid.rb in the previous message :), you'll see that after extending object with B and C, I can't reach neither of A methods. So effectively A is not object's ancestor anymore. Is there any way to #unextend A from the object so I could #extend it with A again? I tried to use #remove_const to no avail. --Ed