Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

includes method to check if a class includes a mixin #62

Open
ghost opened this issue Jan 11, 2021 · 1 comment
Open

includes method to check if a class includes a mixin #62

ghost opened this issue Jan 11, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 11, 2021

It would be quite helpful to add a mixins field to classes, adding mixins to this array when include is called, and an includes method on class instances that return true if the class of that object includes the specified mixin.

@ActivexDiamond
Copy link

I would love to see this! I implement on my fork and it comes in very useful. If anyone's interested, I would love to make a PR for it.

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

No branches or pull requests

2 participants