[libmoosex-semiaffordanceaccessor-perl] 03/10: Add docs on accessors in roles

Intrigeri intrigeri at moszumanska.debian.org
Thu Aug 28 15:44:29 UTC 2014


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to annotated tag v0.09
in repository libmoosex-semiaffordanceaccessor-perl.

commit 42333964bf66f0443f04ad4effa4d29573c1cfd6
Author: Dave Rolsky <autarch at urth.org>
Date:   Sat Feb 26 12:48:31 2011 -0600

    Add docs on accessors in roles
---
 lib/MooseX/SemiAffordanceAccessor.pm | 13 +++++++++++++
 1 file changed, 13 insertions(+)

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<Moose>, attributes added to a class ended up with
+that class's attribute traits. That means that if your class used
+C<MooseX::SemiAffordanceAccessor>, 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<MooseX::SemiAffordanceAccessor> 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmoosex-semiaffordanceaccessor-perl.git



More information about the Pkg-perl-cvs-commits mailing list