From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 5E63719C0161 for ; Sun, 15 Nov 2015 18:38:27 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 430DBB5D8AA for ; Sun, 15 Nov 2015 19:08:41 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id C9A0018CC7F2 for ; Sun, 15 Nov 2015 19:08:41 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id B072D1204F4; Sun, 15 Nov 2015 19:08:40 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id 69BB31204EB for ; Sun, 15 Nov 2015 19:08:37 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=l6vrwx9zkNPhmhyUKb3VgljdZ0g=; b=dU0YSVCn7ZgocxUayP fXGd7MmPTxKByZyjZO8qJO/VjpUovwrC+vhzQPwYpMHx3AnR+LZKYzdTmgwpWpjk XBo0RIJKoEm74hYYjziquwsrxtQAEvYhoHmJ729FQ4X0kcfpeVZV/+j68ZbZR0Q5 fLRJ8eO+GwRgnfn60u1tStILY= Received: by filter0426p1mdw1.sendgrid.net with SMTP id filter0426p1mdw1.7026.564859A036 2015-11-15 10:08:32.732133674 +0000 UTC Received: from herokuapp.com (ec2-54-163-127-143.compute-1.amazonaws.com [54.163.127.143]) by ismtpd0002p1iad1.sendgrid.net (SG) with ESMTP id 2TYEHaaYQc-1DEA3DsS7tg for ; Sun, 15 Nov 2015 10:08:32.595 +0000 (UTC) Date: Sun, 15 Nov 2015 10:08:32 +0000 From: spiketeika@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 46133 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11689 X-Redmine-Issue-Author: yui-knk X-Redmine-Sender: yui-knk 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS6QrKjhpww7wO7FSQOo2pqARt97Z6FYO3bv+3 2sggnYwRXVQGZHCNPfjm8vFShkyx2/607r8DyWxTqwI+shwRofVNjeJclA04ZYFaUYyOmF/gEWMXo+ lxLhX638WbY3q1P68rcFa9GFGD979Vc6lfaH X-ML-Name: ruby-core X-Mail-Count: 71493 Subject: [ruby-core:71493] [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: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #11689 has been updated by Kaneko Yuichiro. Sorry. These methods are useful for inspecting Method object (e.g. debugging or documenting). Currently if we need information about visibility, we should check `owner.public_instance_methods`, `owner.protected_instance_methods`, and `owner.private_instance_methods`: see also pry: https://github.com/pry/pry/blob/1f3f7e7ceff27ef516536849fc44fdf010f91c93/lib/pry/method.rb#L343 ---------------------------------------- Feature #11689: Add methods allow us to get visibility from Method and UnboundMethod object. https://bugs.ruby-lang.org/issues/11689#change-54857 * Author: Kaneko Yuichiro * Status: Open * Priority: Normal * Assignee: ---------------------------------------- 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/