mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Clarify behavior of super in method in module included in refinement [ci skip]
Fixes [Bug #16977]
This commit is contained in:
parent
c786954bf8
commit
021cec938a
1 changed files with 2 additions and 1 deletions
|
|
@ -245,7 +245,8 @@ When +super+ is invoked method lookup checks:
|
|||
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue