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 A971819C0064 for ; Fri, 13 Nov 2015 04:45:24 +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 B08D2B5D83B for ; Fri, 13 Nov 2015 05:15:19 +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 C31FE18CC7EF for ; Fri, 13 Nov 2015 05:15:19 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 515AA120492; Fri, 13 Nov 2015 05:15:17 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id 33182120451 for ; Fri, 13 Nov 2015 05:15:13 +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=o4buAB5G1JorHhUUfzUDtHqHhm4=; b=eobwR0/aIMsdCTchIJ q79WDUKU9Zr7eroWUvgdU6VEiFfNPhWpB2i1WJoX6An7xduyEfnoG16B9oJsxDtC G+f9gadmQbMHdAMc35FbcAGmUzbTx/o9nOIRbRPCKkrDTpMb9knFI2oOoMDm55/+ MDZsYgj78nXakCQvqnpOb1Iv0= Received: by filter0843p1mdw1.sendgrid.net with SMTP id filter0843p1mdw1.26398.5644F34A55 2015-11-12 20:15:06.574143131 +0000 UTC Received: from herokuapp.com (ec2-54-226-128-33.compute-1.amazonaws.com [54.226.128.33]) by ismtpd0004p1iad1.sendgrid.net (SG) with ESMTP id EARmy9aBQmKkHwcFlbRutw for ; Thu, 12 Nov 2015 20:15:06.747 +0000 (UTC) Date: Thu, 12 Nov 2015 20:15:06 +0000 From: james@lazyatom.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: 46108 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11681 X-Redmine-Issue-Author: lazyatom X-Redmine-Sender: lazyatom 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS5zMcclCqCRr/ez877oBCowtf8qK046I4haK+ i6g8i4Os1c+Of2n/89Z7TEYkvNu/OpadyQezpQVfQvZStp32SuUfwG1GyiIEccJW2+7Pt4qQz4kGrG Vd8QslJnqF/mXJ79p7uxiwFw0sgvr7alafdy X-ML-Name: ruby-core X-Mail-Count: 71466 Subject: [ruby-core:71466] [Ruby trunk - Misc #11681] [Open] 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 reported by James Adam. ---------------------------------------- Misc #11681: Refinements documentation is based on older implementation https://bugs.ruby-lang.org/issues/11681 * Author: James Adam * Status: Open * Priority: Normal * Assignee: ---------------------------------------- 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/