UR::Ro...stance(3pm)

πŸ“¦
version 0.470 Β· 2 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– 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::Role
  • UR::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