MooX::...ructor(3pm)
π
MooX::StrictConstructor::Role::Constructor β aka MooX::...ructor(3pm)
okay bestie so this is a User Contributed Perl Documentation page, and the manual name is MooX::...ructor (section 3pm, she's a Perl module doc, periodt). Let's get into it π
β¨ NAME β¨
MooX::StrictConstructor::Role::Constructor β it's a role that makes your Moo constructors strict. no more sneaky random args sliding in unnoticed, we're gatekeeping now π
πΈ DESCRIPTION πΈ
So here's the tea: this role wraps Method::Generate::Constructor with a lil bit of code. What does that lil bit of code do? It makes sure that every single argument you hand to the constructor is actually a valid init_args for the class. That's it. That's the whole vibe check. π¦
Any random typo'd arg you pass in? Caught. Not on her watch. π
π§ STANDING ON THE SHOULDERS OF ... π§
ngl this code would literally not exist without the examples in MooX::InsideOut and MooseX::StrictConstructor. Credit where credit is due, we stan an icon who cites her sources π
β SEE ALSO β
MooseX::StrictConstructor
π BUGS π
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=MooX-StrictConstructor or by email to bug-MooX-StrictConstructor@cpan.org.
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. fr fr, a repro test is the love language of every maintainer, don't just say "it's broken" ππ«Ά
π AUTHOR π
George Hartzell <hartzell@cpan.org> β legend behavior π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2013 by George Hartzell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay, open source queen β¨
okay so that's the whole page bestie, every last crumb of it, no cap π
and that's a wrap! this was rendered by perl v5.40.1, dated 2025-10-05, and it's the one and only MooX::...ructor(3pm) β go forth and have the strictest constructors of your life π
ππ¦
π¦ where this page comes from
- ubuntu resolute: libmoox-strictconstructor-perl 0.013-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmoox-strictconstructor-perl 0.013-1 Β· 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