mix-ins. Roles provide a method of code re-use which is orthogonal to
subclassing.
-=item L<Moose::Cookbook::Roles::Recipe2> - Advanced Role Composition - method exclusion and aliasing
+=item L<Moose::Cookbook::Roles::Restartable_AdvancedComposition>
Sometimes you just want to include part of a role in your
class. Sometimes you want the whole role but one of its methods
-alias => { assign_work => 'get_off_your_lazy_behind' },
);
-We saw examples of how method exclusion and alias working in L<roles
-recipe 2|Moose::Cookbook::Roles::Recipe2>.
+We saw examples of how method exclusion and alias working in
+L<Moose::Cookbook::Roles::Restartable_AdvancedComposition>.
=head1 CONCLUSION
-package Moose::Cookbook::Roles::Recipe2;
+package Moose::Cookbook::Roles::Restartable_AdvancedComposition
# ABSTRACT: Advanced Role Composition - method exclusion and aliasing
In some use cases we might alias and exclude methods from roles, but
then provide a method of the same name in the class itself.
-Also see L<Moose::Cookbook::Roles::Recipe2> for an example.
+Also see L<Moose::Cookbook::Roles::Restartable_AdvancedComposition> for an example.
=head1 ROLE EXCLUSION