From: Dave Rolsky Date: Thu, 12 Feb 2009 17:20:16 +0000 (+0000) Subject: this speling test is really useful. fixed a whole bunch of types in the cookbook X-Git-Tag: 0.69~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=19320607dd1e6217be5f0f7f68db79465d0fb6d9;p=gitmo%2FMoose.git this speling test is really useful. fixed a whole bunch of types in the cookbook --- diff --git a/lib/Moose/Cookbook/Basics/Recipe10.pod b/lib/Moose/Cookbook/Basics/Recipe10.pod index 7031140..8cafe18 100644 --- a/lib/Moose/Cookbook/Basics/Recipe10.pod +++ b/lib/Moose/Cookbook/Basics/Recipe10.pod @@ -230,7 +230,7 @@ The three techniques we used, overloading, subtypes, and coercion, combine to provide a powerful interface. If you'd like to learn more about overloading, please read the -documentation for the L pragme. +documentation for the L pragma. To see all the code we created together, take a look at F. diff --git a/lib/Moose/Cookbook/Basics/Recipe3.pod b/lib/Moose/Cookbook/Basics/Recipe3.pod index c08e4c4..f4063c2 100644 --- a/lib/Moose/Cookbook/Basics/Recipe3.pod +++ b/lib/Moose/Cookbook/Basics/Recipe3.pod @@ -59,7 +59,7 @@ constraint is C, which means literally means it can contain anything. We could have left out the C option, but in this case, we are -including ir for the benefit of other programmers, not the computer. +including it for the benefit of other programmers, not the computer. Next, let's move on to the C attribute: @@ -130,7 +130,7 @@ object. In our case, we're making a new C object in our default, with the current tree as the parent. -Normally, when an object is instantiated, any defaults are evaluted +Normally, when an object is instantiated, any defaults are evaluated immediately. With our C class, this would be a big problem! We'd create the first object, which would immediately try to populate its C and C attributes, which would create a new diff --git a/lib/Moose/Cookbook/Basics/Recipe4.pod b/lib/Moose/Cookbook/Basics/Recipe4.pod index 7998a8d..2da9616 100644 --- a/lib/Moose/Cookbook/Basics/Recipe4.pod +++ b/lib/Moose/Cookbook/Basics/Recipe4.pod @@ -107,7 +107,7 @@ existing CPAN tools for data validation. Finally, we introduce the C attribute parameter. The the C
class we define two subtypes. The first uses the -L module to check the validaity of a state. It accepts +L module to check the validity of a state. It accepts either a state abbreviation of full name. A state will be passed in as a string, so we make our C type @@ -245,7 +245,7 @@ method modifier: This is just a sugary alternative to Perl's built in C feature. However, there is one difference. You cannot pass any -arguments to C. Instead, Moose ismply passes the same +arguments to C. Instead, Moose simply passes the same parameters that were passed to the method. A more detailed example of usage can be found in diff --git a/lib/Moose/Cookbook/Meta/Recipe2.pod b/lib/Moose/Cookbook/Meta/Recipe2.pod index 013ed4c..f9e3db5 100644 --- a/lib/Moose/Cookbook/Meta/Recipe2.pod +++ b/lib/Moose/Cookbook/Meta/Recipe2.pod @@ -108,7 +108,7 @@ you can call methods on it like this: To add a label to our attributes there are two steps. First, we need a new attribute metaclass that can store a label for an -attribute. Second, we nede to create attributes that use that +attribute. Second, we need to create attributes that use that attribute metaclass. =head1 RECIPE REVIEW @@ -136,7 +136,7 @@ Then we need to register our metaclass with Moose: sub register_implementation { 'MyApp::Meta::Attribute::Labeled' } This is a bit of magic that lets us use a short name, "Labeled", when -referring to our new metaclas. +referring to our new metaclass. That was the whole attribute metaclass. @@ -157,7 +157,7 @@ Finally, we use it for an attribute: label => "The site's URL", ); -This looks like a normal attribute declaraion, except for two things, +This looks like a normal attribute declaration, except for two things, the C and C