---
name: "Method::Generate::Constructor::Role::StrictConstructor"
section: "3pm"
platform: "linux"
package: "libmoox-strictconstructor-perl"
version: "0.011-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Method::Generate::Constructor::Role::StrictConstructor"
---

# Method::Generate::Constructor::Role::StrictConstructor(3pm)

a role to make Moo constructors strict.

## NAME

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

## VERSION

version 0.011

## 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.

### STANDING ON THE SHOULDERS OF ...

This code would not exist without the examples in MooX::InsideOut and MooseX::StrictConstructor.

## SEE ALSO

- •

  MooX::InsideOut

- •

  MooseX::StrictConstructor

## AUTHOR

George Hartzell \<hartzell@cpan.org\>

## 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.
