From: Dylan William Hardison Date: Thu, 11 Jun 2009 15:59:03 +0000 (+0000) Subject: You CAN use trigger on read-only attributes. X-Git-Tag: 0.82~15 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0be258b54e50e0340322e0aadaf959475f399b57;p=gitmo%2FMoose.git You CAN use trigger on read-only attributes. --- diff --git a/lib/Moose.pm b/lib/Moose.pm index ec62096..7eea84a 100644 --- a/lib/Moose.pm +++ b/lib/Moose.pm @@ -463,7 +463,7 @@ This is only legal if your C option is either C or C. The I option is a CODE reference which will be called after the value of the attribute is set. The CODE ref will be passed the -instance itself and the updated value. You B have a trigger on +instance itself and the updated value. You B have a trigger on a read-only attribute. B Triggers will only fire when you B to the attribute, @@ -1139,6 +1139,8 @@ Sam (mugwump) Vilain Cory (gphat) Watson +Dylan Hardison (doc fixes) + ... and many other #moose folks =head1 COPYRIGHT AND LICENSE