From: "marcandre (Marc-Andre Lafortune)" Date: 2013-08-31T08:17:40+09:00 Subject: [ruby-core:56898] [ruby-trunk - Bug #8841][Open] Module#included_modules and prepended modules Issue #8841 has been reported by marcandre (Marc-Andre Lafortune). ---------------------------------------- Bug #8841: Module#included_modules and prepended modules https://bugs.ruby-lang.org/issues/8841 Author: marcandre (Marc-Andre Lafortune) Status: Open Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: core Target version: next minor ruby -v: r42735 Backport: The documentation for Module#included_modules currently states "Returns the list of modules included in +mod+." This was never perfectly accurate, as the list also contains modules included in +mod+'s ancestors. It now also includes prepended modules. This is consistent with `include?` that returns true for prepended modules, but not quite consistent with `included` that does not get called for prepended modules. Matz, could you confirm that current behavior is what you want? If so, we should fix the documentation of `include?` and `included_modules`. -- http://bugs.ruby-lang.org/