From: "marcandre (Marc-Andre Lafortune)" <ruby-core@marc-andre.ca>
To: ruby-core@ruby-lang.org
Subject: [ruby-core:56899] [ruby-trunk - Feature #8026] Need Module#prepended_modules
Date: Sat, 31 Aug 2013 08:29:36 +0900 [thread overview]
Message-ID: <redmine.journal-41444.20130831082936@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-8026.20130306124020@ruby-lang.org
Issue #8026 has been updated by marcandre (Marc-Andre Lafortune).
File prepended.pdf added
Slide added. I'm also proposing an optional flag to search only the receiver and not the ancestors.
I didn't put in `prepend?` but it should also be added. On the other hand, `Array.prepend?(Enumerable)` should return false, no?
----------------------------------------
Feature #8026: Need Module#prepended_modules
https://bugs.ruby-lang.org/issues/8026#change-41444
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.
--
http://bugs.ruby-lang.org/
next prev parent reply other threads:[~2013-08-30 23:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-06 3:40 [ruby-core:53159] [ruby-trunk - Feature #8026][Open] Need Module#prepended_modules marcandre (Marc-Andre Lafortune)
2013-07-27 5:47 ` [ruby-core:56216] [ruby-trunk - Feature #8026] " matz (Yukihiro Matsumoto)
2013-07-27 6:27 ` [ruby-core:56222] " knu (Akinori MUSHA)
2013-08-30 23:29 ` marcandre (Marc-Andre Lafortune) [this message]
2013-08-31 6:00 ` [ruby-core:56917] [ruby-trunk - Feature #8026][Feedback] " matz (Yukihiro Matsumoto)
2014-01-30 6:16 ` [ruby-core:60283] [ruby-trunk - Feature #8026] " shibata.hiroshi
2019-12-20 0:51 ` [ruby-core:96347] [Ruby master Feature#8026] " mame
2019-12-20 1:03 ` [ruby-core:96350] " mame
2020-01-16 6:12 ` [ruby-core:96889] " matz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.journal-41444.20130831082936@ruby-lang.org \
--to=ruby-core@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).