From: Dave Rolsky Date: Sat, 14 Feb 2009 17:55:33 +0000 (+0000) Subject: Fix a mistake, triggers are not called for default or builder values, X-Git-Tag: 0.70~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=efe388d9c6f85c2ba9924aeb12709202a5358563;p=gitmo%2FMoose.git Fix a mistake, triggers are not called for default or builder values, but are called for things passed to the constructor. --- diff --git a/lib/Moose/Manual/Attributes.pod b/lib/Moose/Manual/Attributes.pod index 45c9f3e..cfcf8d4 100644 --- a/lib/Moose/Manual/Attributes.pod +++ b/lib/Moose/Manual/Attributes.pod @@ -459,8 +459,12 @@ is called I 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. +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 called when an attribute is populated +from a C or C =head2 Attribute types