Rename Basics::Recipe4 to Basics::Company_Subtypes
Dave Rolsky [Sat, 11 Feb 2012 17:53:08 +0000 (11:53 -0600)]
lib/Moose/Cookbook.pod
lib/Moose/Cookbook/Basics/Company_Subtypes.pod [moved from lib/Moose/Cookbook/Basics/Recipe4.pod with 99% similarity]
lib/Moose/Meta/Attribute.pm

index 58178c0..9a04743 100644 (file)
@@ -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
 
similarity index 99%
rename from lib/Moose/Cookbook/Basics/Recipe4.pod
rename to lib/Moose/Cookbook/Basics/Company_Subtypes.pod
index 908b3b4..a2ad1d1 100644 (file)
@@ -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__
 
index 7b71888..e21ec2f 100644 (file)
@@ -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