From: shugo@... Date: 2020-12-09T01:33:37+00:00 Subject: [ruby-core:101324] [Ruby master Bug#17374] Refined methods aren't visible from a refinement's module Issue #17374 has been updated by shugo (Shugo Maeda). marcandre (Marc-Andre Lafortune) wrote in #note-11: > shugo (Shugo Maeda) wrote in #note-9: > > I don't recommend module inclusion to define refined methods. > > Indeed! > > The question remains: if it's a bad idea to `include/prepend` modules inside a `refine` block, could we not make it a good idea? Would it be technically difficult to duplicate the methods in the included module, import them and active them in the refinement? In addition to implementation issues described by eregon, it may be confusing because it changes the semantics of include/prepend to code duplication like Module#mix proposed by Matz before. Anyway, your proposal should be filed as a feature ticket. ---------------------------------------- Bug #17374: Refined methods aren't visible from a refinement's module https://bugs.ruby-lang.org/issues/17374#change-89022 * Author: marcandre (Marc-Andre Lafortune) * Status: Rejected * Priority: Normal * Assignee: shugo (Shugo Maeda) * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- -- https://bugs.ruby-lang.org/ Unsubscribe: