X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FRole.pm;h=8823601e77337b5702ea455cc6688c534ec9ce02;hb=78d0edd7b8bdac4124812275334519d3d32e8495;hp=30d4e22e003ebbd11ca5d525a43504430006a7ae;hpb=0f8380b0cdbda1e13ed7c456edd3f0d1c0315ec9;p=gitmo%2FMoose.git diff --git a/lib/Moose/Role.pm b/lib/Moose/Role.pm index 30d4e22..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.86'; +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 ), @@ -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