From: Dave Rolsky Date: Sat, 26 Feb 2011 18:54:58 +0000 (-0600) Subject: Copy docs about accessors in roles from MX::SAA X-Git-Tag: v0.05~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=070b11b425943853422c301ad85d9c2e386c9d58;p=gitmo%2FMooseX-FollowPBP.git Copy docs about accessors in roles from MX::SAA --- diff --git a/lib/MooseX/FollowPBP.pm b/lib/MooseX/FollowPBP.pm index b9a5679..20d61e6 100644 --- a/lib/MooseX/FollowPBP.pm +++ b/lib/MooseX/FollowPBP.pm @@ -50,6 +50,19 @@ get and set method will also have an underscore prefix. If you explicitly set a "reader" or "writer" name when creating an attribute, then that attribute's naming scheme is left unchanged. +=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