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 295C71FA7B for ; Wed, 14 Jun 2017 03:07:53 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id B466712082F; Wed, 14 Jun 2017 12:07:50 +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 979D01207BB for ; Wed, 14 Jun 2017 12:07:48 +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=q92eEouNydLV5Y5ri7EWAPp1tDE=; b=sm34Vkb7iGh8xQ82QI mVAiWfGZBwUMie9FJKRodudOOCWW9d6z7SOQdbhDE4/eMzRigKRRL/K6f1tctBz1 l8SAje2Ibbf3ffxT2UXUqaiGNKheXL9y0KmSfM3QT9qdH6BmlW3HztQXt0lBYjP7 I/+sZhefAJtGnba6ms6OU93Nc= Received: by filter0947p1mdw1.sendgrid.net with SMTP id filter0947p1mdw1-29846-5940A880-22 2017-06-14 03:07:44.861864219 +0000 UTC Received: from herokuapp.com (ec2-54-166-234-96.compute-1.amazonaws.com [54.166.234.96]) by ismtpd0003p1iad1.sendgrid.net (SG) with ESMTP id 8kuBzMa9TlKyLqyAYQGgRw Wed, 14 Jun 2017 03:07:44.846 +0000 (UTC) Date: Wed, 14 Jun 2017 03:07:44 +0000 From: stowers.joshua@live.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 56703 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS73n0QpYVz9c1Pq/y9vPC0HLJQTjIH+eLPFZ1 5QrefftsDMN9B0DT9LGMp5WxL4OkSat6T9t+SG+HBTq/aE5lUBNizqrSTSFHMVr1qlR63go3hH1ShZ c9yronvTBK2LfAmBK3MRKRHG+QrtMjnbBFG4zrDhf53I96TGggHt2zTHAw== X-ML-Name: ruby-core X-Mail-Count: 81676 Subject: [ruby-core:81676] [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. ---------------------------------------- Feature #13551: Add a method to alias class methods https://bugs.ruby-lang.org/issues/13551#change-65366 * 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/