From: mateu Date: Sat, 27 Mar 2010 02:58:39 +0000 (-0400) Subject: some words for Meta Cookbook. X-Git-Tag: 1.02~21 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2a67e654c06bacebc1620742d2e4a03155a4fa05;p=gitmo%2FMoose.git some words for Meta Cookbook. --- diff --git a/lib/Moose/Cookbook/Meta/Recipe1.pod b/lib/Moose/Cookbook/Meta/Recipe1.pod index 853df78..79ce2b7 100644 --- a/lib/Moose/Cookbook/Meta/Recipe1.pod +++ b/lib/Moose/Cookbook/Meta/Recipe1.pod @@ -33,7 +33,7 @@ create your own Moose variant. =head2 Examples -Let's say that you want to additional properties to +Let's say that you want to add additional properties to attributes. Specifically, we want to add a "label" property to each attribute, so we can write C<< My::Class->meta()->get_attribute('size')->label() >>. The first two diff --git a/lib/Moose/Cookbook/Meta/Recipe2.pod b/lib/Moose/Cookbook/Meta/Recipe2.pod index 0617614..3f360c0 100644 --- a/lib/Moose/Cookbook/Meta/Recipe2.pod +++ b/lib/Moose/Cookbook/Meta/Recipe2.pod @@ -97,7 +97,7 @@ C. This method is called on the metaclass object. The C method returns a list of attribute names. You can then use C to get the L object itself. -Once you this meta-attribute object, you can call methods on it like this: +Once you have this meta-attribute object, you can call methods on it like this: print $point->meta->get_attribute('x')->type_constraint; => Int @@ -109,7 +109,7 @@ attribute metaclass. =head1 RECIPE REVIEW -We start by creating a new attribute metaclass. +We start by creating a new attribute metaclass. package MyApp::Meta::Attribute::Labeled; use Moose; diff --git a/lib/Moose/Cookbook/Meta/Recipe6.pod b/lib/Moose/Cookbook/Meta/Recipe6.pod index 1cc3648..9c1a44a 100644 --- a/lib/Moose/Cookbook/Meta/Recipe6.pod +++ b/lib/Moose/Cookbook/Meta/Recipe6.pod @@ -126,7 +126,7 @@ more information about the method. A custom method metaclass lets us add both behavior and meta-information to methods. Unfortunately, because the Perl -interpreter does not private easy hooks into method declaration, the +interpreter does not provide easy hooks into method declaration, the API we have for adding these methods is not very pretty. That can be improved with custom Moose-like sugar, or even by using a