From: Karen Etheridge Date: Thu, 7 Apr 2011 23:17:12 +0000 (-0700) Subject: comments specifying how these traits are applied, just to keep it straight X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d6932ec61c8830ca9781c3dc11d440424fc6c577;p=gitmo%2FMooseX-StrictConstructor.git comments specifying how these traits are applied, just to keep it straight --- diff --git a/lib/MooseX/StrictConstructor/Role/Object.pm b/lib/MooseX/StrictConstructor/Role/Object.pm index 4b5a765..56c2aed 100644 --- a/lib/MooseX/StrictConstructor/Role/Object.pm +++ b/lib/MooseX/StrictConstructor/Role/Object.pm @@ -1,5 +1,8 @@ package MooseX::StrictConstructor::Role::Object; +# applied as base_class_roles => [ __PACKAGE__ ], for all Moose versions. +# wraps the constructor for mutable classes. + use Moose::Role; use namespace::autoclean; diff --git a/lib/MooseX/StrictConstructor/Trait/Class.pm b/lib/MooseX/StrictConstructor/Trait/Class.pm index 0c73318..9827bab 100644 --- a/lib/MooseX/StrictConstructor/Trait/Class.pm +++ b/lib/MooseX/StrictConstructor/Trait/Class.pm @@ -1,5 +1,7 @@ package MooseX::StrictConstructor::Trait::Class; +# applied as class_metaroles => { class => [ __PACKAGE__ ] }, for Moose 1.99x and later + use Moose::Role; use namespace::autoclean; diff --git a/lib/MooseX/StrictConstructor/Trait/Method/Constructor.pm b/lib/MooseX/StrictConstructor/Trait/Method/Constructor.pm index 0ceec12..da0c4d3 100644 --- a/lib/MooseX/StrictConstructor/Trait/Method/Constructor.pm +++ b/lib/MooseX/StrictConstructor/Trait/Method/Constructor.pm @@ -1,5 +1,7 @@ package MooseX::StrictConstructor::Trait::Method::Constructor; +# applied as class_metaroles => { constructor => [ __PACKAGE__ ] }, for older Moose + use Moose::Role; use namespace::autoclean;