MooX::...ructor(3pm)

πŸ“¦
version 0.013 Β· 3 versions
, in ubuntu resolute, ubuntu stonking

πŸ’… 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 πŸ’œ


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