[ruby-core:96350] [Ruby master Feature#8026] Need Module#prepended_modules

[email protected]
Newsgroups gmane.comp.lang.ruby.core
Message-ID <redmine.journal-83261.20191220010346.a8ca87c5a4c5fbe6@ruby-lang.org>
Issue #8026 has been updated by mame (Yusuke Endoh).


Now I'm unsure if the feature is worth adding.  It was accepted six years ago, but not implemented yet.  I've never heard any actual trouble due to the lack.

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

* Author: marcandre (Marc-Andre Lafortune)
* Status: Feedback
* Priority: Normal
* Assignee: matz (Yukihiro Matsumoto)
* Target version: 
----------------------------------------
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.

---Files--------------------------------
prepended.pdf (99.4 KB)


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

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.