From: Dave Rolsky Date: Sat, 11 Feb 2012 20:22:53 +0000 (-0600) Subject: Rename Roles::Recipe2 to Roles::Restartable_AdvancedComposition X-Git-Tag: 2.0500~67 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=706d2d376b483d4a0f50e8fb79cdce1dd9d0db9f;p=gitmo%2FMoose.git Rename Roles::Recipe2 to Roles::Restartable_AdvancedComposition --- diff --git a/lib/Moose/Cookbook.pod b/lib/Moose/Cookbook.pod index dfab2dd..2b065a0 100644 --- a/lib/Moose/Cookbook.pod +++ b/lib/Moose/Cookbook.pod @@ -95,7 +95,7 @@ Demonstrates roles, which are also sometimes known as traits or mix-ins. Roles provide a method of code re-use which is orthogonal to subclassing. -=item L - Advanced Role Composition - method exclusion and aliasing +=item L Sometimes you just want to include part of a role in your class. Sometimes you want the whole role but one of its methods diff --git a/lib/Moose/Cookbook/Roles/Recipe3.pod b/lib/Moose/Cookbook/Roles/Recipe3.pod index b81c9f4..63d2a49 100644 --- a/lib/Moose/Cookbook/Roles/Recipe3.pod +++ b/lib/Moose/Cookbook/Roles/Recipe3.pod @@ -93,8 +93,8 @@ We could also pass parameters to the role we're applying: -alias => { assign_work => 'get_off_your_lazy_behind' }, ); -We saw examples of how method exclusion and alias working in L. +We saw examples of how method exclusion and alias working in +L. =head1 CONCLUSION diff --git a/lib/Moose/Cookbook/Roles/Recipe2.pod b/lib/Moose/Cookbook/Roles/Restartable_AdvancedComposition.pod similarity index 98% rename from lib/Moose/Cookbook/Roles/Recipe2.pod rename to lib/Moose/Cookbook/Roles/Restartable_AdvancedComposition.pod index 096abfd..94d0d1c 100644 --- a/lib/Moose/Cookbook/Roles/Recipe2.pod +++ b/lib/Moose/Cookbook/Roles/Restartable_AdvancedComposition.pod @@ -1,4 +1,4 @@ -package Moose::Cookbook::Roles::Recipe2; +package Moose::Cookbook::Roles::Restartable_AdvancedComposition # ABSTRACT: Advanced Role Composition - method exclusion and aliasing diff --git a/lib/Moose/Manual/Roles.pod b/lib/Moose/Manual/Roles.pod index 6a80902..bf8757c 100644 --- a/lib/Moose/Manual/Roles.pod +++ b/lib/Moose/Manual/Roles.pod @@ -292,7 +292,7 @@ probably expects it to implement that method. 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 for an example. +Also see L for an example. =head1 ROLE EXCLUSION