Skip to content

Expose definition mixins in the Ruby API#722

Open
vinistock wants to merge 1 commit into04-02-expose_classdefinition_superclass_from
04-02-expose_definition_mixins_in_the_ruby_api
Open

Expose definition mixins in the Ruby API#722
vinistock wants to merge 1 commit into04-02-expose_classdefinition_superclass_from
04-02-expose_definition_mixins_in_the_ruby_api

Conversation

@vinistock
Copy link
Copy Markdown
Member

@vinistock vinistock commented Apr 2, 2026

This PR exposes the mixins method to all applicable definitions. The mixins are basically include/prepend/extend operations that hold a constant reference.

Copy link
Copy Markdown
Member Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vinistock vinistock self-assigned this Apr 2, 2026
@vinistock vinistock added the enhancement New feature or request label Apr 2, 2026
@vinistock vinistock marked this pull request as ready for review April 2, 2026 20:26
@vinistock vinistock requested a review from a team as a code owner April 2, 2026 20:26
assert_equal("M", mixins[0].constant_reference.declaration.name)
end
end

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

let's add a test for extend self

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants