Use a better class name for recipe code
Dave Rolsky [Sat, 1 Oct 2011 15:50:26 +0000 (10:50 -0500)]
lib/Moose/Cookbook/Meta/Recipe6.pod

index 548bb27..730a19f 100644 (file)
@@ -9,7 +9,7 @@ __END__
 
 =head1 SYNOPSIS
 
-  package My::Meta::Method;
+  package MyApp::Meta::Method::PrivateOrPublic;
 
   use Moose;
   use Moose::Util::TypeConstraints;
@@ -66,7 +66,7 @@ __END__
 
   __PACKAGE__->meta()->add_method(
       '_reset_password',
-      My::Meta::Method->new(
+      MyApp::Meta::Method::PrivateOrPublic->new(
           name         => '_reset_password',
           package_name => __PACKAGE__,
           body         => sub { $_[0]->password('reset') },