ruby-changes:62184
From: Jeremy <ko1@a...>
Date: Sat, 11 Jul 2020 07:38:43 +0900 (JST)
Subject: [ruby-changes:62184] 021cec938a (master): Clarify behavior of super in method in module included in refinement [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=021cec938a From 021cec938af55a7ef368eadc99a6e3ff2252510e Mon Sep 17 00:00:00 2001 From: Jeremy Evans <code@j...> Date: Fri, 10 Jul 2020 15:31:51 -0700 Subject: Clarify behavior of super in method in module included in refinement [ci skip] Fixes [Bug #16977] diff --git a/doc/syntax/refinements.rdoc b/doc/syntax/refinements.rdoc index 44a63a2..c900ab1 100644 --- a/doc/syntax/refinements.rdoc +++ b/doc/syntax/refinements.rdoc @@ -245,7 +245,8 @@ When +super+ is invoked method lookup checks: https://github.com/ruby/ruby/blob/trunk/doc/syntax/refinements.rdoc#L245 Note that +super+ in a method of a refinement invokes the method in the refined class even if there is another refinement which has been activated in -the same context. +the same context. This is only true for +super+ in a method of a refinement, it +does not apply to +super+ in a method in a module that is included in a refinement. == Methods Introspection -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/