From: Christian Walde Date: Tue, 10 Jan 2012 14:20:32 +0000 (+0100) Subject: added note that trigger also triggers on constructor X-Git-Tag: v0.009_016~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6fe5100dc26234a719b865d92b92ea4e735569ef;p=gitmo%2FMoo.git added note that trigger also triggers on constructor --- diff --git a/lib/Moo.pm b/lib/Moo.pm index 32dc9cd..6450df8 100644 --- a/lib/Moo.pm +++ b/lib/Moo.pm @@ -325,8 +325,9 @@ Takes a hashref =item * trigger -Takes a coderef which will get called any time the attribute is set. Coderef -will be invoked against the object with the new value as an argument. +Takes a coderef which will get called any time the attribute is set. This +includes the constructor. Coderef will be invoked against the object with the +new value as an argument. Note that Moose also passes the old value, if any; this feature is not yet supported.