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 B1DDA19C01E9 for ; Tue, 17 Nov 2015 17:36:05 +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 D1C75B5D897 for ; Tue, 17 Nov 2015 18:06:34 +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 39DC918CC7F1 for ; Tue, 17 Nov 2015 18:06:35 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 57A8D120446; Tue, 17 Nov 2015 18:06:33 +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 3BCC412043A for ; Tue, 17 Nov 2015 18:06:30 +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=u8ZPT20hxV99Y96HYiCOVR9ciGA=; b=wXxA9nK7PkrPIF0cWy moObdkmv8XD/Pfkh1k/LLXk69U9R1bU827Uqt8hMeyCQmoss7h46MtVo08+K4aco SMV9yzzYk8xlX93rj5fmr/zhQ0aYHDjb/LEJpZftLjuEftHlFUN2381zk2a3W9mF V2uzSDPO79d6wVtnGAumAS0yU= Received: by filter0500p1mdw1.sendgrid.net with SMTP id filter0500p1mdw1.21248.564AEE122F 2015-11-17 09:06:26.458601159 +0000 UTC Received: from herokuapp.com (ec2-54-159-203-223.compute-1.amazonaws.com [54.159.203.223]) by ismtpd0001p1iad1.sendgrid.net (SG) with ESMTP id OWc37WzKQ3izmF18_htNfA for ; Tue, 17 Nov 2015 09:06:26.359 +0000 (UTC) Date: Tue, 17 Nov 2015 09:06:26 +0000 From: shibata.hiroshi@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: 46173 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11681 X-Redmine-Issue-Author: lazyatom X-Redmine-Issue-Assignee: shugo X-Redmine-Sender: hsbt 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS7YLOVSI+HRCxIBd/RFbn+Rlt8yO7uwbh5DKB pRrm9s+LxkNRV/sjHSQInSO2vaCWzhk7rlcIWU0wevhzZ9lAhcp28cOTuzOoxKXckuWiRT2cry4It0 34ZyEywuavssIDV4HRXZUVBY+YvbuT4ZpXwX X-ML-Name: ruby-core X-Mail-Count: 71518 Subject: [ruby-core:71518] [Ruby trunk - Misc #11681] [Assigned] 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 Hiroshi SHIBATA. Status changed from Open to Assigned Assignee set to Shugo Maeda ---------------------------------------- Misc #11681: Refinements documentation is based on older implementation https://bugs.ruby-lang.org/issues/11681#change-54893 * Author: James Adam * Status: Assigned * 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/