Forum: Ruby-core [ruby-trunk - Feature #8026][Open] Need Module#prepended_modules

Posted by marcandre (Marc-Andre Lafortune) (Guest)
on 2013-03-06 04:42
(Received via mailing list)
Issue #8026 has been reported by marcandre (Marc-Andre Lafortune).

----------------------------------------
Feature #8026: Need Module#prepended_modules
https://bugs.ruby-lang.org/issues/8026

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


We should have a way to get the list of prepended modules of a class or 
module.

    module Mixin
    end

    module Outer
      prepend Mixin
    end

    Mixin.prepended_modules   #=> []
    Outer.prepended_modules   #=> [Mixin]

See also bug #8025.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.