use strict;
use warnings;
-our $VERSION = '0.01';
+our $VERSION = '0.06';
use Moose;
use MooseX::Object::StrictConstructor;
return if $caller eq 'main';
- Moose::init_meta( $caller, 'MooseX::Object::StrictConstructor', 'Moose::Meta::Class' );
+ Moose::init_meta( $caller,
+ 'MooseX::Object::StrictConstructor',
+ 'MooseX::StrictConstructor::Meta::Class',
+ );
Moose->import( { into => $caller } );
Using this class to load Moose instead of just loading using Moose
itself makes your constructors "strict". If your constructor is called
-with an attribute that your class does not declare, then it calls
-"Carp::confess()". This is a great way to catch small typos.
+with an attribute init argument that your class does not declare, then
+it calls "Carp::confess()". This is a great way to catch small typos.
=head2 Subverting Strictness
}
}
+=head2 Caveats
+
+Using this class replaces the default Moose meta class,
+C<Moose::Meta::Class>, with its own,
+C<MooseX::StrictConstructor::Meta::Class>. If you have your own meta
+class, this distro will probably not work for you.
+
=head1 AUTHOR
Dave Rolsky, C<< <autarch@urth.org> >>