From: Dave Rolsky <autarch@urth.org>
Date: Sat, 11 Feb 2012 17:53:08 +0000 (-0600)
Subject: Rename Basics::Recipe4 to Basics::Company_Subtypes
X-Git-Tag: 2.0500~76
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2326164ec66ffd50a9597dbf0bfa17509642a615;p=gitmo%2FMoose.git

Rename Basics::Recipe4 to Basics::Company_Subtypes
---

diff --git a/lib/Moose/Cookbook.pod b/lib/Moose/Cookbook.pod
index 58178c0..9a04743 100644
--- a/lib/Moose/Cookbook.pod
+++ b/lib/Moose/Cookbook.pod
@@ -41,10 +41,11 @@ Demonstrates several attribute features, including types, weak
 references, predicates ("does this object have a foo?"), defaults,
 laziness, and triggers.
 
-=item L<Moose::Cookbook::Basics::Recipe4> - Subtypes, and modeling a simple B<Company> class hierarchy
+=item L<Moose::Cookbook::Basics::Company_Subtypes>
 
-Introduces the creation and use of custom types, a C<BUILD> method,
-and the use of C<override> in a subclass.
+Introduces the creation and use of custom types, a C<BUILD> method, and the
+use of C<override> in a subclass. This recipe also shows how to model a set of
+classes that could be used to model companies, people, employees, etc.
 
 =item L<Moose::Cookbook::Basics::Recipe5> - More subtypes, coercion in a B<Request> class
 
diff --git a/lib/Moose/Cookbook/Basics/Recipe4.pod b/lib/Moose/Cookbook/Basics/Company_Subtypes.pod
similarity index 99%
rename from lib/Moose/Cookbook/Basics/Recipe4.pod
rename to lib/Moose/Cookbook/Basics/Company_Subtypes.pod
index 908b3b4..a2ad1d1 100644
--- a/lib/Moose/Cookbook/Basics/Recipe4.pod
+++ b/lib/Moose/Cookbook/Basics/Company_Subtypes.pod
@@ -1,6 +1,6 @@
-package Moose::Cookbook::Basics::Recipe4;
+package Moose::Cookbook::Basics::Company_Subtypes;
 
-# ABSTRACT: Subtypes, and modeling a simple B<Company> class hierarchy
+# ABSTRACT: Demonstrates the use of subtypes and how to model classes related to companies, people, employees, etc.
 
 __END__
 
diff --git a/lib/Moose/Meta/Attribute.pm b/lib/Moose/Meta/Attribute.pm
index 7b71888..e21ec2f 100644
--- a/lib/Moose/Meta/Attribute.pm
+++ b/lib/Moose/Meta/Attribute.pm
@@ -1482,7 +1482,7 @@ Any coercion to convert values is done before checking the type constraint.
 To check a value against a type constraint before setting it, fetch the
 attribute instance using L<Class::MOP::Class/find_attribute_by_name>,
 fetch the type_constraint from the attribute using L<Moose::Meta::Attribute/type_constraint>
-and call L<Moose::Meta::TypeConstraint/check>. See L<Moose::Cookbook::Basics::Recipe4>
+and call L<Moose::Meta::TypeConstraint/check>. See L<Moose::Cookbook::Basics::Company_Subtypes>
 for an example.
 
 =back