From: Dave Rolsky Date: Fri, 13 Feb 2009 19:18:40 +0000 (+0000) Subject: Mention that we could use a trigger instead of a before modifier in X-Git-Tag: 0.70~26 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9327b01c56a220b4c09f73381bca577f49ad87a9;p=gitmo%2FMoose.git Mention that we could use a trigger instead of a before modifier in our example code. --- diff --git a/lib/Moose/Cookbook/Basics/Recipe3.pod b/lib/Moose/Cookbook/Basics/Recipe3.pod index 68edfd4..3f00223 100644 --- a/lib/Moose/Cookbook/Basics/Recipe3.pod +++ b/lib/Moose/Cookbook/Basics/Recipe3.pod @@ -172,6 +172,11 @@ requirement is that the wrappee must exist before the wrapper is defined (after all, you cannot wrap something which doesn't exist, right?). +We could also get the same outcome by using an attribute trigger. A +trigger is fired whenever the attribute is I. See +L for more information about +triggers. + As with all the other recipes, B can be used just like any other Perl 5 class. A more detailed example of its usage can be found in F.