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 7DC551BA007E for ; Wed, 10 May 2017 00:40:00 +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 2337DB5D85A for ; Wed, 10 May 2017 01:23:47 +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 1D2A318CC80A for ; Wed, 10 May 2017 01:23:46 +0900 (JST) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 8E79E1206A6; Wed, 10 May 2017 01:23:45 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org 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 4A039120036 for ; Wed, 10 May 2017 01:23:42 +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=3hcwLEJBeP9+Z+xicMdh9PYEK+k=; b=FLLHiAZq/DtyEF7lp0 VQAwTmz+TWZscYDV/ZY2i0GPq2JNCWMFr5g5Gyjtut4YahIecEoyyXZlStMNntGk OfWtxCcIRt1UAlS+7W6dWRw6i+/bJueYZlCnrCY5Ut9kRyDkEg3TPnux9hGHJixF aK0wG0x/dmolMOJ+bROJ4wwPo= Received: by filter0457p1mdw1.sendgrid.net with SMTP id filter0457p1mdw1-6025-5911ED08-5D 2017-05-09 16:23:36.876541377 +0000 UTC Received: from herokuapp.com (ec2-50-19-182-174.compute-1.amazonaws.com [50.19.182.174]) by ismtpd0003p1iad1.sendgrid.net (SG) with ESMTP id N7zcgZmETFivvM--Jlq0FA Tue, 09 May 2017 16:23:36.783 +0000 (UTC) Date: Tue, 09 May 2017 16:23:36 +0000 From: stowers.joshua@live.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 56104 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS5CSZS+dUVlkFPQyT42ojS13QhzT2rZiUR18i inHWM0wT/S4SLTFptv+9gIpMsVJV9AEJo2gyJVGvqZvTYaJLQLhyjLi5KePiD+HrNDJuFLMsOpNuAQ an8+SJLQ3WHKMPG0RAMFGQ11VMf95OFTaZ+LobNk24uHePO4ttJlv5psnQ== X-ML-Name: ruby-core X-Mail-Count: 81077 Subject: [ruby-core:81077] [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). Thanks Matthew, that result is exactly what I had in mind. Having to nest the logic within `class << self` makes it difficult to understand what is going on, and the code less readable. ---------------------------------------- Feature #13551: Add a method to alias class methods https://bugs.ruby-lang.org/issues/13551#change-64728 * 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/