From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_PASS,T_DKIM_INVALID,T_RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 129E41FA7B for ; Wed, 14 Jun 2017 03:09:02 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 44F04120843; Wed, 14 Jun 2017 12:09:01 +0900 (JST) Received: from o1678916x28.outbound-mail.sendgrid.net (o1678916x28.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id A0AC11207BB for ; Wed, 14 Jun 2017 12:08:58 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=jxnJ3tRdKuo//9r2MFQD3aSqsGE=; b=uXiJbOOucU9frCrpN0 nEHpYFaFFIERz7InbL91lRq5j4AUcmsLK67c7S/PcoehlDPYblCAXDQMqK1ko8vr d/CbGi3KBDLDjVwcmt+N5g+uXM3qM9vexWyfXFtK2j4scYYkSj2w8Sc7dmSiaZeu JZKhtIMvM5Bj4sp0zL+jvwwt4= Received: by filter0546p1mdw1.sendgrid.net with SMTP id filter0546p1mdw1-18604-5940A8C6-27 2017-06-14 03:08:54.834113351 +0000 UTC Received: from herokuapp.com (ec2-50-16-99-206.compute-1.amazonaws.com [50.16.99.206]) by ismtpd0006p1iad1.sendgrid.net (SG) with ESMTP id PobhDifHR-WL3VuvRr56Bg Wed, 14 Jun 2017 03:08:54.815 +0000 (UTC) Date: Wed, 14 Jun 2017 03:08:54 +0000 From: stowers.joshua@live.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 56704 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 13551 X-Redmine-Issue-Author: JustJosh X-Redmine-Sender: JustJosh 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS6HNnJDdwORk0usK1/a6daX+45URJN7UYWdk7 DnD5eJUmU7XqaJBuktC+rfDRtO6OOORD9vZCCRNujDcfUqfUE0f3M937EyLTZ/wpijBoIvI8HqJ3l7 6Qs0pUSB1Rp6joV3pq3CICGVe51RZhUi7B44setVJybrmWUDi4LaZoFw1g== X-ML-Name: ruby-core X-Mail-Count: 81677 Subject: [ruby-core:81677] [Ruby trunk Feature#13551] Add a method to alias class methods 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 #13551 has been updated by JustJosh (Joshua Stowers). I think Robert is exactly right. I've hoped for such a method on several occasions myself, but highly dislike cluttering up the codebase with logic that is difficult to understand. One of the best things about Ruby is that when written well it can read almost like English. Such a method would help apply that further. ---------------------------------------- Feature #13551: Add a method to alias class methods https://bugs.ruby-lang.org/issues/13551#change-65367 * Author: JustJosh (Joshua Stowers) * Status: Feedback * Priority: Normal * Assignee: * Target version: ---------------------------------------- There doesn't seem to be an intuitive way to alias class methods. Perhaps we can add a method such as ~~~ ruby alias_class_method :new_name, :old_name ~~~ -- https://bugs.ruby-lang.org/