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=-3.2 required=3.0 tests=AWL,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_PASS shortcircuit=no autolearn=no 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 DCC9D1F97E for ; Sat, 24 Nov 2018 12:40:33 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id AD2FA121B2B; Sat, 24 Nov 2018 21:40:31 +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 22052121B2B for ; Sat, 24 Nov 2018 21:40:29 +0900 (JST) Received: by filter0088p3las1.sendgrid.net with SMTP id filter0088p3las1-26772-5BF946BA-1A 2018-11-24 12:40:26.614971161 +0000 UTC m=+749715.379546862 Received: from herokuapp.com (ec2-54-205-8-50.compute-1.amazonaws.com [54.205.8.50]) by ismtpd0009p1iad2.sendgrid.net (SG) with ESMTP id _f7qTv3sQiqZ3tcL10ESCw Sat, 24 Nov 2018 12:40:26.488 +0000 (UTC) Date: Sat, 24 Nov 2018 12:40:27 +0000 (UTC) From: eregontp@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 65432 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11689 X-Redmine-Issue-Author: yui-knk X-Redmine-Sender: Eregon 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: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS4YxG6J0d6AQYVBqPJt7oMuVR/XKbsPohx9nm EgkEcuVMYN98NuRsIteaxwf+qBVufCQnUZ+w8surHHvGYSXMqHf3ObaWB+AnVxxsdpEVX+/765HNpF Ac5CbUWbQh0IyxbAlak9mD6tq5+oM4mnpd7FNOFgV3rnqrhJLUErIb9aCQ== X-ML-Name: ruby-core X-Mail-Count: 90036 Subject: [ruby-core:90036] [Ruby trunk Feature#11689] Add methods allow us to get visibility from Method and UnboundMethod object. 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 #11689 has been updated by Eregon (Benoit Daloze). I think visibility is the perfect, accurate and unambiguous term for this (e.g., it's even used in the documentation of #private). Returning the corresponding Symbol also seems very intuitive. So take my vote as +1 for Method#visibility and -1 for 3 methods which seem very inconvenient to use. Basically, it's 1 method versus 3 and it's strictly more expressive/powerful (the result can be displayed easily for introspection, and also compared to a known visibility). ---------------------------------------- Feature #11689: Add methods allow us to get visibility from Method and UnboundMethod object. https://bugs.ruby-lang.org/issues/11689#change-75145 * Author: yui-knk (Kaneko Yuichiro) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- Add `Method#visibility` and `UnboundMethod#visibility` for getting visibility from Method and UnboundMethod object. In GitHub https://github.com/ruby/ruby/pull/1098. ---Files-------------------------------- 0001-Add-Method-visibility-and-UnboundMethod-visibility.patch (3.11 KB) -- https://bugs.ruby-lang.org/