Skip to content

[DOC] Update refinement documentation after disallowing include in refinements - #16972

Merged
jeremyevans merged 1 commit into
ruby:masterfrom
jeremyevans:refinements-doc
May 16, 2026
Merged

jeremyevans merged 1 commit into
ruby:masterfrom
jeremyevans:refinements-doc

Conversation

@jeremyevans

Copy link
Copy Markdown
Contributor

When this documentation was written, refinements allowed the use of include. However, support for that was removed in Ruby 3.2.

@jeremyevans
jeremyevans requested a review from shugo May 14, 2026 15:45
@github-actions github-actions Bot added the Documentation Improvements to documentation. label May 14, 2026
This removes the discussion of included modules in refinements,
since support for that was removed in Ruby 3.2.

This switches the method lookup description to be ancestor-based
instead of class-based, so it better reflects how the process
actually works.

Also discuss how super inside a refined module method is not allowed
if the method was called via super from a refinement method.

@shugo shugo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me. Thank you!

@jeremyevans
jeremyevans merged commit a4c655e into ruby:master May 16, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Improvements to documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants