X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FRole.pm;h=8823601e77337b5702ea455cc6688c534ec9ce02;hb=78d0edd7b8bdac4124812275334519d3d32e8495;hp=b9e56866bf11ccd82f60b220820b62d6f7f66b7d;hpb=5ef36adde3d619733607b9f5f1136524a00848df;p=gitmo%2FMoose.git diff --git a/lib/Moose/Role.pm b/lib/Moose/Role.pm index b9e5686..8823601 100644 --- a/lib/Moose/Role.pm +++ b/lib/Moose/Role.pm @@ -7,7 +7,7 @@ use Carp 'croak'; use Sub::Exporter; -our $VERSION = '0.85'; +our $VERSION = '0.89_01'; $VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; @@ -90,7 +90,7 @@ sub augment { Moose::Exporter->setup_import_methods( with_caller => [ - qw( with requires excludes has before after around override make_immutable ) + qw( with requires excludes has before after around override ) ], as_is => [ qw( extends super inner augment ), @@ -175,7 +175,7 @@ Moose::Role - The Moose Role =head1 DESCRIPTION -The concept of roles is documented in L. This document +The concept of roles is documented in L. This document serves as API documentation. =head1 EXPORTED FUNCTIONS @@ -193,6 +193,9 @@ Moose::Role also offers two role-specific keyword exports: Roles can require that certain methods are implemented by any class which C the role. +Note that attribute accessors also count as methods for the purposes +of satisfying the requirements of a role. + =item B Roles can C other roles, in effect saying "I can never be combined @@ -228,7 +231,8 @@ You can also specify traits which will be applied to your role metaclass: This is very similar to the attribute traits feature. When you do this, your class's C object will have the specified traits -applied to it. See L for more details. +applied to it. See L for more +details. =head1 CAVEATS