MooseX...ication(3pm)

πŸ“¦
version 0.32 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

MooseX::MethodAttributes::Role::Meta::Role::Application β€” bestie, it's a generic role for applying a role that has method attributes onto... something. anything really. it's giving "one job, done cute" πŸ’…

(and yes, this lil page lives in the User Contributed Perl Documentation, so you know it's community-crafted 🫢)


✨ VERSION ✨

version 0.32 β€” this is the one, the current one, no cap 🌸


πŸŽ€ METHODS πŸŽ€

πŸ¦‹ apply

okay so the apply method here is wrapped β€” like, it got a lil makeover so it can do its main character thing properly. here's the tea, in order:

  1. first it makes sure the correct metaclasses are actually present on the target β€” the ones that hold and propagate method attribute data β€” because you literally cannot apply a role without those being there. vibe check passed or we don't proceed πŸ’…
  2. then it delegates to the original method to actually, y'know, do the applying. no gatekeeping, it lets the og method cook 🍳
  3. and finally it makes sure that any attributes coming from the role get copied over to the target class. nothing gets left behind, periodt ✨

so it's like: prep the stage, let the original perform, then make sure every accessory got packed up and sent to the right address. iconic behavior honestly πŸ‘‘


🌈 SUPPORT 🌈

got a bug? don't suffer in silence bestie, they literally want to hear about it 😭

there's also a mailing list for users of this distribution, at http://lists.perl.org/list/moose.html β€” pull up, say hi πŸ’Œ

and there's an irc channel too!! for users of this distribution, at #moose on irc.perl.org β€” or if you're fancy, irc://irc.perl.org/#moose 🌸

come hang out, the moose people are lovely fr fr 🫢

πŸ‘‘ AUTHORS πŸ‘‘

these absolute legends made it happen:

  • Florian Ragwitz <rafl@debian.org>
  • Tomas Doran <bobtfish@bobtfish.net>

This software is copyright (c) 2009 by Florian Ragwitz.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like... go wild, respectfully 🌈


and that's the whole page bestie!! πŸ’– this was documented in User Contributed Perl Documentation for MooseX::MethodAttributes::Role::Meta::Role::Application β€” page generated by perl v5.30.3 on 2020-08-31, so yes she's been serving looks since way back. slay, take care, and go apply those roles responsibly βœ¨πŸŽ€πŸ’…

πŸ“¦ where this page comes from