Method::Generate::Constructor::Role::StrictConstructor - a role to make Moo constructors strict.
Contents
Copyright And License
This software is copyright (c) 2020 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.
perl v5.36.0 2022-12-06 Method::Generat...rictConstructor(3pm)
Description
This role wraps "_assign_new" in Method::Generate::Constructor with a bit of code that ensures that all
arguments passed to the constructor are valid init_args for the class.
STANDINGONTHESHOULDERSOF...
This code would not exist without the examples in MooX::InsideOut and MooseX::StrictConstructor.
Name
Method::Generate::Constructor::Role::StrictConstructor - a role to make Moo constructors strict.
See Also
• MooX::InsideOut
• MooseX::StrictConstructor
Version
version 0.011
