Project

General

Profile

Actions

Bug #8841

closed

Module#included_modules and prepended modules

Added by marcandre (Marc-Andre Lafortune) about 11 years ago. Updated almost 5 years ago.

Status:
Closed
Target version:
-
ruby -v:
r42735
Backport:
[ruby-core:56898]
Tags:

Description

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.


Related issues 2 (0 open2 closed)

Related to Backport200 - Backport #8025: Module#included_modules includes classesClosednagachika (Tomoyuki Chikanaga)03/06/2013Actions
Related to Ruby master - Feature #8026: Need Module#prepended_modulesFeedbackmatz (Yukihiro Matsumoto)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0