We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This would be the inverse of #8133. Where given a TypeNode, call a method to get an array of modules included in that type. E.g.
TypeNode
module Bar end struct Foo include Bar end # Or maybe `.included_modules` to be more explicit? {{Foo.included}} # => [Bar]
EDIT: Or maybe just also use #includers, but have it function based on if it is used on a module vs class/struct TypeNode.
#includers
This is currently already possible, but this would just provide a better API compared to:
{{pp Foo.ancestors.select &.module?}}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This would be the inverse of #8133. Where given a
TypeNode
, call a method to get an array of modules included in that type. E.g.EDIT: Or maybe just also use
#includers
, but have it function based on if it is used on a module vs class/struct TypeNode.This is currently already possible, but this would just provide a better API compared to:
The text was updated successfully, but these errors were encountered: