From: Dave Rolsky <autarch@urth.org>
Date: Wed, 4 Feb 2009 00:06:53 +0000 (+0000)
Subject: Clarify difference between trigger & after method modifier
X-Git-Tag: 0.67~2
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9c9484bf8712dc5e301031d1631338b1f13a3c85;p=gitmo%2FMoose.git

Clarify difference between trigger & after method modifier
---

diff --git a/lib/Moose/Manual/Attributes.pod b/lib/Moose/Manual/Attributes.pod
index 3740c11..cc43ed2 100644
--- a/lib/Moose/Manual/Attributes.pod
+++ b/lib/Moose/Manual/Attributes.pod
@@ -402,6 +402,11 @@ The trigger is called as a method, and receives the new value as well
 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: