From: gfx Date: Sun, 25 Oct 2009 08:43:38 +0000 (+0900) Subject: Tweak for Meta::Method X-Git-Tag: 0.40_01~18 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ef20630593cf958f60d61c37ca16f322d9516ef5;p=gitmo%2FMouse.git Tweak for Meta::Method --- diff --git a/lib/Mouse/Meta/Method.pm b/lib/Mouse/Meta/Method.pm index f800ff0..ebbcbf6 100755 --- a/lib/Mouse/Meta/Method.pm +++ b/lib/Mouse/Meta/Method.pm @@ -2,7 +2,7 @@ package Mouse::Meta::Method; use Mouse::Util qw(:meta); # enables strict and warnings use overload - '&{}' => 'body', + '&{}' => sub{ $_[0]->body }, fallback => 1, ;