From: Alex J. G. BurzyƄski Date: Sat, 21 May 2011 21:21:29 +0000 (+0200) Subject: document coerce handling X-Git-Tag: release_0.009009~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMoo.git;a=commitdiff_plain;h=23a3e34e96e78978af463010852ad97691126369 document coerce handling --- diff --git a/Changes b/Changes index 0342cf3..e65275e 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ 0.009008 - 2011-06-03 - transfer fix to _load_module to Role::Tiny and make a note it's an inline - Bring back 5.8.1 compat + - add coerce handling 0.009007 - 2011-02-25 - I botched the copyright. re-disting. diff --git a/lib/Moo.pm b/lib/Moo.pm index bce8ad2..09ad5c2 100644 --- a/lib/Moo.pm +++ b/lib/Moo.pm @@ -263,10 +263,6 @@ L =item * coerce -This Moose feature is not yet supported - -=begin hide - Takes a coderef which is meant to coerce the attribute. The basic idea is to do something like the following: @@ -274,9 +270,9 @@ do something like the following: $_[0] + 1 unless $_[0] % 2 }, -L +Coerce does not require C to be defined. -=end hide +L =item * trigger