X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FMethod.pm;h=3e46d2f107e706637d01342fbf52f6b2849da338;hb=a2f1294a5b2b3c9503376048da7e578f62b39ac6;hp=f800ff03294c2b9bdfd0863a62ea1a801ed1bdaa;hpb=9010458d614641c8103b1d06b479e0c80aa1dcda;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Meta/Method.pm b/lib/Mouse/Meta/Method.pm index f800ff0..3e46d2f 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, ; @@ -39,7 +39,7 @@ Mouse::Meta::Method - A Mouse Method metaclass =head1 VERSION -This document describes Mouse version 0.40 +This document describes Mouse version 0.40_02 =head1 SEE ALSO