logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Method::Generate::Constructor::Role::StrictConstructor - a role to make Moo constructors strict.

Author

       George Hartzell <hartzell@cpan.org>

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

See Also