MooseX...::Role(3pm)
π¦ 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::MooseSetupMooseX::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:
requiresextendshasinnersuper
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::DeclareMooseX::Declare::Syntax::Keyword::ClassMooseX::Declare::Syntax::RoleApplicationMooseX::Declare::Syntax::MooseSetup
π AUTHOR
Florian Ragwitz <rafl@debian.org> β ty for your service, legend π
π COPYRIGHT AND LICENSE
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
- debian bookworm: libmoosex-declare-perl 0.43-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmoosex-declare-perl 0.43-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmoosex-declare-perl 0.43-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmoosex-declare-perl 0.43-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmoosex-declare-perl 0.43-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