From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 4A7881F463 for ; Fri, 20 Dec 2019 01:03:55 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id C68A2120A13; Fri, 20 Dec 2019 10:03:43 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id B9EB6120A06 for ; Fri, 20 Dec 2019 10:03:41 +0900 (JST) Received: by filterdrecv-p3las1-5bf99c48d-h9vrl with SMTP id filterdrecv-p3las1-5bf99c48d-h9vrl-20-5DFC1DF3-4E 2019-12-20 01:03:47.612405012 +0000 UTC m=+260283.299702967 Received: from herokuapp.com (unknown [3.92.31.214]) by ismtpd0086p1mdw1.sendgrid.net (SG) with ESMTP id CoyudYRBQ-ODel-vr-8w6w for ; Fri, 20 Dec 2019 01:03:47.378 +0000 (UTC) Date: Fri, 20 Dec 2019 01:03:47 +0000 (UTC) From: mame@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 72011 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 8026 X-Redmine-Issue-Author: marcandre X-Redmine-Issue-Assignee: matz X-Redmine-Sender: mame X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: =?us-ascii?Q?EJh2gqwnyqXtd++xo=2FinyA1V0bXouTB4FkWnzNiKb49vfk69tUmZ76B3ylRoSh?= =?us-ascii?Q?9vdE23NxZ651MtH49ZHMSMV27kdQd=2F=2Fsg3226sj?= =?us-ascii?Q?94X3cgkrLvohp0kvL2qsZ93Zt3NBP58bn8mP7sI?= =?us-ascii?Q?N0p80jd8WWQJAPdJHmf9NteVu6koT0TdI3O9FtU?= =?us-ascii?Q?A2VyY37HRr9Bdf2qLVyv5QBeLdj1OrUKsxRnIQ+?= =?us-ascii?Q?wZLCgwyZyPD=2F0lHkI=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 96350 Subject: [ruby-core:96350] [Ruby master Feature#8026] Need Module#prepended_modules X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" 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/