From: Dave Rolsky Date: Sat, 26 Feb 2011 18:48:31 +0000 (-0600) Subject: Add docs on accessors in roles X-Git-Tag: v0.09~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=42333964bf66f0443f04ad4effa4d29573c1cfd6;p=gitmo%2FMooseX-SemiAffordanceAccessor.git Add docs on accessors in roles --- diff --git a/lib/MooseX/SemiAffordanceAccessor.pm b/lib/MooseX/SemiAffordanceAccessor.pm index baae5d5..80a793b 100644 --- a/lib/MooseX/SemiAffordanceAccessor.pm +++ b/lib/MooseX/SemiAffordanceAccessor.pm @@ -54,6 +54,19 @@ attribute, then that attribute's naming scheme is left unchanged. The name "semi-affordance" comes from David Wheeler's Class::Meta module. +=head1 ACCESSORS IN ROLES + +Prior to version 1.9900 of L, attributes added to a class ended up with +that class's attribute traits. That means that if your class used +C, any attributes provided by roles you +consumed had the semi-affordance style of accessor. + +As of Moose 1.9900, that is no longer the case. Attributes provided by roles +no longer acquire the consuming class's attribute traits. However, with Moose +1.9900+, you can now use C directly in +roles. Attributes defined by that role will have semi-affordance style +accessors, regardless of what attribute traits the consuming class has. + =head1 BUGS Please report any bugs or feature requests to