From: Adriano Mitre Date: 2011-01-24T08:02:35+09:00 Subject: [ruby-core:34811] [Ruby 1.9-Bug#4307] include fails after undef_method Issue #4307 has been updated by Adriano Mitre. So it was a misunderstanding of #undef_method that led me to not expect the actual behaviour. Thanks for the clarification. I read the documentation and understood the difference between undef_method and remove_method, but I was unable to see how the latter could be any more useful than the former in the case in point. How then I could achieve the desired effects, i.e., include, exclude and then re-include a mixin? If possible, I would like to dynamically change the ancestors tree. (The only alternative I can think of would involve extracting method objects and create methods to dynamically bind them, which seems a bit awkward even considering this is a fairly atypical scenario.) ---------------------------------------- http://redmine.ruby-lang.org/issues/show/4307 ---------------------------------------- http://redmine.ruby-lang.org