How to add your knowledge

hasRule?()

    Table of contents
    1. 1. Synopsis
    2. 2. Syntax
    3. 3. Example 1

    Synopsis

    Returns True if part has a rule named name. Includes rules which are inherited from mixin Designs, as well as dynamically-added rules.

    Syntax

    hasRule? ( part As Part, _
               name As Name ) As Boolean 
    Argument Type Description
    part part The part to be queried.
    name name The rule name.

    Example 1

    Intent >hasRule?(root, :origin) 
    --> True 
    Note that root is unlikely to have a local rule named origin, but hasRule? includes rules which are inherited.