mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
[DOC] Update refinements.rdoc
removes documentation for the activation order of `include` and `prepend` inside a refinement
This commit is contained in:
parent
e4219e2742
commit
7bc7246956
Notes:
git
2025-10-29 01:47:38 +00:00
Merged: https://github.com/ruby/ruby/pull/14955 Merged-By: nobu <nobu@ruby-lang.org>
@ -212,10 +212,7 @@ all refinements from the same module are active when a refined method
|
||||
|
||||
When looking up a method for an instance of class +C+ Ruby checks:
|
||||
|
||||
* If refinements are active for +C+, in the reverse order they were activated:
|
||||
* The prepended modules from the refinement for +C+
|
||||
* The refinement for +C+
|
||||
* The included modules from the refinement for +C+
|
||||
* The refinements of +C+, in reverse order of activation
|
||||
* The prepended modules of +C+
|
||||
* +C+
|
||||
* The included modules of +C+
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user