[Moose-commits] r7525 - Moose/trunk/lib/Moose/Manual
autarch at code2.0beta.co.uk
autarch at code2.0beta.co.uk
Wed Feb 4 00:06:54 GMT 2009
Author: autarch
Date: 2009-02-03 16:06:53 -0800 (Tue, 03 Feb 2009)
New Revision: 7525
Modified:
Moose/trunk/lib/Moose/Manual/Attributes.pod
Log:
Clarify difference between trigger & after method modifier
Modified: Moose/trunk/lib/Moose/Manual/Attributes.pod
===================================================================
--- Moose/trunk/lib/Moose/Manual/Attributes.pod 2009-02-03 23:56:59 UTC (rev 7524)
+++ Moose/trunk/lib/Moose/Manual/Attributes.pod 2009-02-04 00:06:53 UTC (rev 7525)
@@ -402,6 +402,11 @@
as the L<Moose::Meta::Attribute> object for the attribute. The trigger
is called I<after> the value is set.
+This differs from an after method modifier in two ways. First, a
+trigger is only called when the attribute is set, as opposed to
+whenever the accessor is called. Second, it is also called if the
+attribute is set via a lazy default or builder.
+
=head2 Attribute Types
Attributes can be restricted to only accept certain types:
More information about the Moose-commits
mailing list