From: Justin Hunter Date: Sat, 26 Nov 2011 02:39:40 +0000 (-0500) Subject: document handles X-Git-Tag: v0.009013~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMoo.git;a=commitdiff_plain;h=e1efec09f3069c696ce3a8cbe865472e28824fa4 document handles --- diff --git a/lib/Moo.pm b/lib/Moo.pm index c146af8..9214507 100644 --- a/lib/Moo.pm +++ b/lib/Moo.pm @@ -303,6 +303,22 @@ Coerce does not require C to be defined. L +=item * handles + +Takes a string + + handles => 'Robot' + +Takes a list of methods + + handles => [ qw( one two ) ] + +Takes a hashref + + handles => { + un => 'one', + } + =item * trigger Takes a coderef which will get called any time the attribute is set. Coderef