logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

UR::Role::PrototypeWithParams - Binds a set of params to a role

Description

       Objects of this class are returned when calling create() on a role's class.  They exist temporarily as a
       class is being defined as a means of binding a set of role params to a UR::Role::Prototype to use in the
       "roles" section of a class description.  See the "Parameterized Roles" section in UR::Role.

   Methods
       create(prototype => $role_proto, role_params => $hashref)
           The constructor.  Both arguments are required.

       __role__()
           Returns itself.  Used by the role composition mechanism to trigger autoloading the role's module when
           role names are given as strings in a class definition.

       instantiate_role_instance($class_name)
           Return a UR::Role::Instance object.

Name

       UR::Role::PrototypeWithParams - Binds a set of params to a role

See Also

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

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

See Also