[DOC] Update refinements.rdoc

removes documentation for the activation order of `include` and `prepend` inside a refinement
This commit is contained in:
Astra 2025-10-29 05:17:11 +03:30 committed by GitHub
parent e4219e2742
commit 7bc7246956
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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>

View File

@ -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+