[Moose-commits] r7655 - Moose/trunk/lib/Moose/Cookbook/Basics

autarch at code2.0beta.co.uk autarch at code2.0beta.co.uk
Fri Feb 13 19:18:41 GMT 2009


Author: autarch
Date: 2009-02-13 11:18:40 -0800 (Fri, 13 Feb 2009)
New Revision: 7655

Modified:
   Moose/trunk/lib/Moose/Cookbook/Basics/Recipe3.pod
Log:
Mention that we could use a trigger instead of a before modifier in
our example code.


Modified: Moose/trunk/lib/Moose/Cookbook/Basics/Recipe3.pod
===================================================================
--- Moose/trunk/lib/Moose/Cookbook/Basics/Recipe3.pod	2009-02-13 19:01:11 UTC (rev 7654)
+++ Moose/trunk/lib/Moose/Cookbook/Basics/Recipe3.pod	2009-02-13 19:18:40 UTC (rev 7655)
@@ -172,6 +172,11 @@
 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<set>. See
+L<Moose::Manual::Attributes/Triggers> for more information about
+triggers.
+
 As with all the other recipes, B<BinaryTree> can be used just like any
 other Perl 5 class. A more detailed example of its usage can be found
 in F<t/000_recipes/003_recipe.t>.




More information about the Moose-commits mailing list