MooseX...::Trait(3pm)
β¨ NAME β¨
MooseX::MultiInitArg::Trait β a composable role that lets you give your attributes multiple init arguments, bestie π
(it lives in the MooseX...::Trait(3pm) section of the User Contributed Perl Documentation, iykyk)
πΈ DESCRIPTION πΈ
Okay so picture this: you've got an attribute, and you want it to be reachable from the constructor under, like, a whole list of names. Not one. A list. Aliases. A little squad of names all pointing at the same attribute π«Ά
That's literally what this is. It's a composable trait β meaning you just add it onto an attribute β and once it's there, you can specify a list of aliases, and every one of those aliases gets recognized as a constructor argument for that attribute. No cap. π
Composable. Trait. Attribute. Aliases. Constructor arguments. That's the whole vibe. β¨
π AUTHOR π
Paul Driver, <frodwith at cpan.org> β iconic, we love them π
π COPYRIGHT AND LICENSE π
Copyright 2007-2008 by Paul Driver. Periodt.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. πͺπ
fr fr, that's the whole page. Go forth and alias your init args, main character π β¨
π MooseX...::Trait(3pm) Β· perl v5.34.0 Β· 2022-06-15 Β· mwah, stan π¦ π β π
π¦ where this page comes from
- debian bookworm: libmoosex-multiinitarg-perl 0.02-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmoosex-multiinitarg-perl 0.02-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmoosex-multiinitarg-perl 0.02-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmoosex-multiinitarg-perl 0.02-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmoosex-multiinitarg-perl 0.02-3 Β· 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