Risk-Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

UR::Role::Instance - Represents a role composed with a class with a set of params

Description

       When a class composes one or more roles, the role names given in the class description are converted to
       UR::Role::Instance objects as the class is constructed.  These are returned by the class' roles() method.

   Methodsrole_name()
           Returns the name of the role

       class_name()
           Returns the name of the class composing the role

       role_params()
           Returns a hashref of role params used when the class composed the role

Name

       UR::Role::Instance - Represents a role composed with a class with a set of params

See Also

       UR::Role, UR::Role::Prototype

perl v5.38.2                                       2024-06-15                            UR::Role::Instance(3pm)

See Also