[Moose-commits] r7688 - Moose/trunk/lib/Moose/Manual
autarch at code2.0beta.co.uk
autarch at code2.0beta.co.uk
Sat Feb 14 17:55:34 GMT 2009
Author: autarch
Date: 2009-02-14 09:55:33 -0800 (Sat, 14 Feb 2009)
New Revision: 7688
Modified:
Moose/trunk/lib/Moose/Manual/Attributes.pod
Log:
Fix a mistake, triggers are not called for default or builder values,
but are called for things passed to the constructor.
Modified: Moose/trunk/lib/Moose/Manual/Attributes.pod
===================================================================
--- Moose/trunk/lib/Moose/Manual/Attributes.pod 2009-02-14 17:53:08 UTC (rev 7687)
+++ Moose/trunk/lib/Moose/Manual/Attributes.pod 2009-02-14 17:55:33 UTC (rev 7688)
@@ -459,9 +459,13 @@
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.
+whenever the accessor method is called (for reading or
+writing). Second, it is also called if the when an attribute's value
+is passed to the constructor.
+However, triggers are I<not> called when an attribute is populated
+from a C<default> or C<builder>
+
=head2 Attribute types
Attributes can be restricted to only accept certain types:
More information about the Moose-commits
mailing list