MooseX...::Role(3pm)

πŸ“¦
version 0.43 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ¦‹ MooseX::Declare::Syntax::Keyword::Role β€” bestie edition

okay so you found the manual page for MooseX::Declare::Syntax::Keyword::Role πŸ’– it lives in the User Contributed Perl Documentation corner of the perl universe, and it's literally all about role declarations. yes. roles. the ✨main character✨ of Moose-y code reuse.


πŸ’… VERSION

version 0.43 β€” that's the one, bestie, no cap.


πŸŽ€ METHODS

🧚 generate_export

CodeRef Object->generate_export ()

ngl this one is short and sweet: it hands you back a closure (a CodeRef, obviously πŸ’) that has a call to make_anon_metaclass inside it. that's it. that's the whole vibe.


🌸 CONSUMES

the way this module just consumes things 😌 it's giving very "borrowing your bestie's hoodie" energy:

  • MooseX::Declare::Syntax::MooseSetup
  • MooseX::Declare::Syntax::RoleApplication

πŸ”₯ MODIFIED METHODS

⭐ imported_moose_symbols

List Object->imported_moose_symbols ()

so this one extends the existing imported_moose_symbols over in MooseX::Declare::Syntax::MooseSetup, and it brings the whole squad along with it:

  • requires
  • extends
  • has
  • inner
  • super

like okayyy, we're importing all of them πŸ’… periodt.

πŸ¦‹ import_symbols_from

Str Object->import_symbols_from ()

this is the glow-up moment: instead of the default Moose, it's gonna return Moose::Role. it said "not me being the default Moose, i'm built different" πŸ’–

πŸ‘‘ make_anon_metaclass

Object Object->make_anon_metaclass ()

and this one? iconic. it returns an anonymous instance of Moose::Meta::Role. anon but make it metaclass. we love to see it 🫢


🌈 SEE ALSO

go read these next, bestie, they're all connected, iykyk:

  • MooseX::Declare
  • MooseX::Declare::Syntax::Keyword::Class
  • MooseX::Declare::Syntax::RoleApplication
  • MooseX::Declare::Syntax::MooseSetup

πŸ’œ AUTHOR

Florian Ragwitz <rafl@debian.org> β€” ty for your service, legend πŸŽ€


this software is copyright (c) 2008 by Florian Ragwitz.

it's free software πŸ’– you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay.


fr fr that's the whole page. no gatekeeping, every single detail is still here, just with better vibes ✨

this page came to you from perl v5.34.0, dated 2022-06-15 β€” mwah, bye bestie πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from