MooseX::StrictConstructor::Role::Object - A role which implements a strict constructor for Moose::Object
Moose::Util::MetaRole::apply_base_class_roles ( for_class => $caller, roles => [ 'MooseX::StrictConstructor::Role::Object' ], );
When you use MooseX::StrictConstructor, your objects will have this role applied to them. It provides a method modifier for BUILDALL() from Moose::Object that implements strict argument checking for your class.
MooseX::StrictConstructor
BUILDALL()
Moose::Object
Dave Rolsky, <autarch@urth.org>
<autarch@urth.org>
Copyright 2007-2008 Dave Rolsky, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install MooseX::StrictConstructor, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::StrictConstructor
CPAN shell
perl -MCPAN -e shell install MooseX::StrictConstructor
For more information on module installation, please visit the detailed CPAN module installation guide.