From: Shawn M Moore Date: Sun, 18 Jan 2009 02:47:21 +0000 (+0000) Subject: Better make_immutable invocation, because metaclass constructors are X-Git-Tag: 0.05~17 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a3af385078d9de87e36ad65d9e349afe1346e7b2;p=gitmo%2FMooseX-Role-Parameterized.git Better make_immutable invocation, because metaclass constructors are still Special --- diff --git a/lib/MooseX/Role/Parameterized/Meta/Parameter.pm b/lib/MooseX/Role/Parameterized/Meta/Parameter.pm index 29fc918..1ae50b7 100644 --- a/lib/MooseX/Role/Parameterized/Meta/Parameter.pm +++ b/lib/MooseX/Role/Parameterized/Meta/Parameter.pm @@ -3,8 +3,10 @@ use Moose; extends 'Moose::Meta::Attribute'; - -__PACKAGE__->meta->make_immutable; +__PACKAGE__->meta->make_immutable( + inline_constructor => 1, + constructor_name => "_new", +); no Moose; 1;