Actions
Feature #9887
openAdd uninclude please
Status:
Open
Assignee:
-
Target version:
-
Description
Hi!
I would like to have a way to cleanly uninclude a module.
Consider:
module Foo
TEST = '123'
end
class Bar
include Foo
end
Now I would like to uninclude Foo. I can remove constants and methods already,
i.e. via remove_method
or undef
* and constants can be removed as well but
I would like to have something like:
class Bar
uninclude Foo
end
or
Bar.uninclude Foo
Bar.remove_ancestors Foo
Would this be possible? It might be useful but perhaps there is a
reason why this can not be added.
Actions
Like0
Like0Like0