Returns True if part has a rule named name. Includes rules which are inherited from mixin Designs , as well as dynamically-added rules.
hasRule? ( part As Part, _ name As Name ) As Boolean
Argument | Type | Description |
---|---|---|
part | part | The part to be queried. |
name | name | The rule name . |
Intent >hasRule?(root, :origin) --> TrueNote that root is unlikely to have a local rule named origin, but hasRule? includes rules which are inherited.