X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FMethod.pm;h=dd11d1f32f0452ae41c31e6689450868bc4a3a25;hb=30e110044ee3c47be8c6dfb1bf6a0e827ed2c160;hp=f800ff03294c2b9bdfd0863a62ea1a801ed1bdaa;hpb=9010458d614641c8103b1d06b479e0c80aa1dcda;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Meta/Method.pm b/lib/Mouse/Meta/Method.pm index f800ff0..dd11d1f 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_05 =head1 SEE ALSO