middleclass icon indicating copy to clipboard operation
middleclass copied to clipboard

`includes` method to check if a class includes a mixin

Open ghost opened this issue 5 years ago • 1 comments

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.

ghost avatar Jan 11 '21 22:01 ghost

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.

ActivexDiamond avatar May 01 '23 22:05 ActivexDiamond