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 CAA8A19C02B3 for ; Fri, 20 Nov 2015 16:07:15 +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 CE5C0B5D8A1 for ; Fri, 20 Nov 2015 16:38:07 +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 4C1C318CC7B6 for ; Fri, 20 Nov 2015 16:38:08 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id BF573120454; Fri, 20 Nov 2015 16:38:06 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o2.heroku.sendgrid.net (o2.heroku.sendgrid.net [67.228.50.55]) by neon.ruby-lang.org (Postfix) with ESMTPS id 30CA312043A for ; Fri, 20 Nov 2015 16:38:02 +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=8uVtoGcPOtw1ipOguMwZvwt1DB4=; b=JXOz+npxiYMwP7Dcs5 pFlbKy17kHV6t1zWeHSoyDOsiPe6CEELHH6hw8SGe9FSzyAVdFJh/MkAs2rJfRmE oNpzgDgIVhD6sFNB4XumTl5iM1hK3rL2dtF03npPAM7SFCjq9yCp5AAZH+luhZiq lgWnTqA+xkOeiYQ/ZPGcKdtgE= Received: by filter0437p1mdw1.sendgrid.net with SMTP id filter0437p1mdw1.17297.564ECDD81B 2015-11-20 07:38:00.272655552 +0000 UTC Received: from herokuapp.com (ec2-54-161-166-99.compute-1.amazonaws.com [54.161.166.99]) by ismtpd0002p1iad1.sendgrid.net (SG) with ESMTP id 1Svejwy_ReSqen8p1U13IA for ; Fri, 20 Nov 2015 07:37:59.978 +0000 (UTC) Date: Fri, 20 Nov 2015 07:37:59 +0000 From: shugo@ruby-lang.org 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: 46271 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11681 X-Redmine-Issue-Author: lazyatom X-Redmine-Issue-Assignee: shugo X-Redmine-Sender: shugo 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS4WwyFZMp60VGw/9VK3F23GjUvCBKqKZ0/JGP 0gl7GJzMAfNZ9d5SXXnaWLa1T7lZdMcaEKvT4YCf/0U1JuIJWfVOqifTQQtSnSOXtNx0RMmsCq8KA5 caS09AJGSGmAAL9hKtZybtl8sp8V5YpmWJOd X-ML-Name: ruby-core X-Mail-Count: 71604 Subject: [ruby-core:71604] [Ruby trunk - Misc #11681] [Closed] Refinements documentation is based on older implementation 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 #11681 has been updated by Shugo Maeda. Status changed from Assigned to Closed Merged by r52629 ---------------------------------------- Misc #11681: Refinements documentation is based on older implementation https://bugs.ruby-lang.org/issues/11681#change-54988 * Author: James Adam * Status: Closed * Priority: Normal * Assignee: Shugo Maeda ---------------------------------------- It seems that the refinements documentation hasn't been updated to reflect more recent changes to how refinements work. For example, [[https://github.com/ruby/ruby/blob/trunk/doc/syntax/refinements.rdoc#scope]] says "You may only activate refinements at top-level, not inside any class, module or method scope", whereas the current implementation allows activating refinements anywhere except inside methods. I've attached one potential reworking to be more accurate, but I don't mind if it's used or not. The main thing is for it to be made correct. ---Files-------------------------------- update-refinements-documentation.patch (2.63 KB) -- https://bugs.ruby-lang.org/