MooseX...::Class(3pm)

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

πŸ’– 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::MooseSetup
  • MooseX::Declare::Syntax::RoleApplication
  • MooseX::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::Declare
  • MooseX::Declare::Syntax::Keyword::Role
  • MooseX::Declare::Syntax::RoleApplication
  • MooseX::Declare::Syntax::Extending
  • MooseX::Declare::Syntax::MooseSetup

⭐ AUTHOR ⭐

Florian Ragwitz <rafl@debian.org> β€” the legend behind all of this. 🫢

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