From: Dave Rolsky Date: Wed, 14 Nov 2007 23:59:13 +0000 (+0000) Subject: Shut up my critic. X-Git-Tag: 0.01~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=73f3070c79ce9fc18d77d6eb2fa77212a02366bb;p=gitmo%2FMooseX-SemiAffordanceAccessor.git Shut up my critic. Some more doc tweaks before release. --- diff --git a/lib/MooseX/Policy/SemiAffordanceAccessor.pm b/lib/MooseX/Policy/SemiAffordanceAccessor.pm index 32fb2a7..0cb7514 100644 --- a/lib/MooseX/Policy/SemiAffordanceAccessor.pm +++ b/lib/MooseX/Policy/SemiAffordanceAccessor.pm @@ -6,10 +6,12 @@ use warnings; our $VERSION = '0.01'; our $AUTHORITY = 'cpan:DROLSKY'; -use constant attribute_metaclass => 'MooseX::Policy::SemiAffordanceAccessor::Attribute'; +use constant attribute_metaclass => ## no critic ProhibitConstantPragma + 'MooseX::Policy::SemiAffordanceAccessor::Attribute'; -package MooseX::Policy::SemiAffordanceAccessor::Attribute; +package MooseX::Policy::SemiAffordanceAccessor::Attribute; ## no critic ProhibitMultiplePackages + use Moose; @@ -73,6 +75,9 @@ accessor, while set methods are prefixed with "set_". If you define an attribute with a leading underscore, then the set method will start with "_set_". +If you explicitly set a "reader" or "writer" name when creating an +attribute, then this policy skips that attribute. + The name "semi-affordance" comes from David Wheeler's Class::Meta module.