MooseX...::Class(3pm)
π MooseX::Declare::Syntax::Keyword::Class π
okay bestie, listen β this is a page from the User Contributed Perl Documentation, and it's the one that makes class declarations actually happen inside MooseX::Declare. no cap, this little module is the whole reason you get to type class Foo { ... } and have it just work. iconic behavior, honestly. π
β¨ NAME β¨
MooseX::Declare::Syntax::Keyword::Class β literally just: class declarations. that's it. that's the vibe. π
πΈ VERSION πΈ
version 0.43 β yes it's giving vintage, and yes we love her for it. π¦
π METHODS π
generate_export
CodeRef generate_export ()
this hands you back a closure, and that closure does a call to make_anon_metaclass. so like, it's the lil factory that gets your class syntax wired up. main character energy, fr fr. β¨
π«Ά CONSUMES π«Ά
the roles she's eating up, one by one:
MooseX::Declare::Syntax::MooseSetupMooseX::Declare::Syntax::RoleApplicationMooseX::Declare::Syntax::Extending
not her borrowing these β she consumes them. periodt. π
π¦ MODIFIED METHODS π¦
imported_moose_symbols
List Object->imported_moose_symbols ()
takes the existing imported_moose_symbols from MooseX::Declare::Syntax::MooseSetup and extends it with extends, has, inner and super. so those four lil keywords are officially invited to the party. π
auto_make_immutable
Bool Object->auto_make_immutable ()
this one's set to a true value, which means classes get made immutable by default. no extra steps, no asking, she just does it. efficiency queen. π
make_anon_metaclass
Object Object->make_anon_metaclass ()
returns an anonymous instance of Moose::Meta::Class. anon but make it metaclass, iykyk. π
π SEE ALSO π
go read these next, bestie, they're all connected:
MooseX::DeclareMooseX::Declare::Syntax::Keyword::RoleMooseX::Declare::Syntax::RoleApplicationMooseX::Declare::Syntax::ExtendingMooseX::Declare::Syntax::MooseSetup
β AUTHOR β
Florian Ragwitz <rafl@debian.org> β the legend behind all of this. π«Ά
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2008 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, but respectfully. π
lowkey the most important part: those license terms are real and you gotta respect 'em. same terms as Perl 5 itself, fr fr. don't be weird about it. π
and that's the whole page, bestie!! πΈ this was MooseX::Declare::Syntax::Keyword::Class, version 0.43, straight out of the perl v5.34.0 docs dated 2022-06-15. slay, go write some classes. πβ¨π
π¦ 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