Issue #8025 has been reported by marcandre (Marc-Andre Lafortune).

----------------------------------------
Bug #8025: Module#included_modules includes classes
https://bugs.ruby-lang.org/issues/8025

Author: marcandre (Marc-Andre Lafortune)
Status: Open
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: core
Target version: current: 2.1.0
ruby -v: r39608


I see two problems in the following code:

    module Mixin
    end

    class C
      prepend Mixin
    end

    C.included_modules # => [Mixin, C, Kernel]

1) C should definitely not be there, since no class should ever appear in that list.

2) I wonder if Mixin should be there, since it was prepended to C, not included.


-- 
http://bugs.ruby-lang.org/