Make your Moo-based object constructors blow up on unknown attributes

Edit Package perl-MooX-StrictConstructor
https://metacpan.org/release/MooX-StrictConstructor

Simply loading this module makes your constructors "strict". If your constructor is called with an attribute init argument that your class does not declare, then it dies. This is a great way to catch small typos. Your application can use Carp::Always to generate stack traces on 'die'. Previously all exceptions contained traces, but this could potentially leak sensitive information, e.g. My::Sensitive::Class->new( password => , extra_value => 'foo' );

Refresh
Refresh
Source Files (show merged sources derived from linked package)
Filename Size Changed
Latest Revision
Dirk Mueller's avatar Dirk Mueller (dirkmueller) committed (revision 1)
Comments 0
openSUSE Build Service is sponsored by