From: Dave Rolsky Date: Sat, 11 Feb 2012 17:22:25 +0000 (-0600) Subject: Rename Basics::Recipe1 to Basics::Point_AttributesAndSubclassing X-Git-Tag: 2.0500~79 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c4fde3b5443ed0830b3a340713bda9f65ad9763a;p=gitmo%2FMoose.git Rename Basics::Recipe1 to Basics::Point_AttributesAndSubclassing --- diff --git a/lib/Moose/Cookbook.pod b/lib/Moose/Cookbook.pod index bd31a4b..aa552f1 100644 --- a/lib/Moose/Cookbook.pod +++ b/lib/Moose/Cookbook.pod @@ -26,9 +26,9 @@ laziness, types, type coercion, method modifiers, and more. =over 4 -=item L - The (always classic) B example +=item L -A simple Moose-based class. Demonstrates Moose attributes and subclassing. +A simple Moose-based class. Demonstrates basic Moose attributes and subclassing. =item L - A simple B example diff --git a/lib/Moose/Cookbook/Basics/Recipe1.pod b/lib/Moose/Cookbook/Basics/Point_AttributesAndSubclassing.pod similarity index 98% rename from lib/Moose/Cookbook/Basics/Recipe1.pod rename to lib/Moose/Cookbook/Basics/Point_AttributesAndSubclassing.pod index d9c478f..1371841 100644 --- a/lib/Moose/Cookbook/Basics/Recipe1.pod +++ b/lib/Moose/Cookbook/Basics/Point_AttributesAndSubclassing.pod @@ -1,6 +1,6 @@ -package Moose::Cookbook::Basics::Recipe1; +package Moose::Cookbook::Basics::Point_AttributesAndSubclassing; -# ABSTRACT: The (always classic) B example. +# ABSTRACT: Point and Point3D classes, showing basic attributes and subclassing. __END__ @@ -165,7 +165,7 @@ required, and calling C without them will throw an error. From here on, we can use C<$point> and C<$point3d> just as you would any other Perl 5 object. For a more detailed example of what can be done, you can refer to the -F test file. +F test file. =head2 Moose Objects are Just Hashrefs diff --git a/lib/Moose/Cookbook/Snack/Types.pod b/lib/Moose/Cookbook/Snack/Types.pod index 2b6670b..c11d21b 100644 --- a/lib/Moose/Cookbook/Snack/Types.pod +++ b/lib/Moose/Cookbook/Snack/Types.pod @@ -39,8 +39,9 @@ __END__ =head1 DESCRIPTION -This is the Point example from L -with type checking added. +This is the Point example from +L with type checking +added. If we try to assign a string value to an attribute that is an C, Moose will die with an explicit error message. The error will include @@ -57,7 +58,7 @@ to check a value directly. =over 4 -=item L +=item L =item L