UR::Ro...stance(3pm)
π NAME π
UR::Role::Instance β bestie, this lil guy represents a role composed with a class with a set of params. that's the whole vibe. π
β¨ DESCRIPTION β¨
okay so here's the tea β β when a class composes one or more roles, the role names you wrote in the class description get converted into UR::Role::Instance objects as the class is being constructed. like, mid-construction. they just become these objects. no cap.
and then? the class' roles() method hands them right back to you. that's it, that's the whole thing. π
π¦ Methods π¦
role_name()β returns the name of the role. the role's name. its whole identity. iconic. πclass_name()β returns the name of the class composing the role. who's the main character composing whom, yk? πrole_params()β returns a hashref of role params used when the class composed the role. all the lil settings that were in play at composition time. π
π SEE ALSO π
UR::RoleUR::Role::Prototype
k bye bestie, go compose some roles π β this was the UR::Role::Instance page from the User Contributed Perl Documentation, perl v5.32.1, dated 2022-01-17. mwah, slay, periodt π«Άβ¨
π¦ where this page comes from
- debian bookworm: libur-perl 0.470+ds-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libur-perl 0.470+ds-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libur-perl 0.470+ds-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms