X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FMethod.pm;h=ebbcbf6de3b8053ee23edfb97a472d6a8b1643db;hb=935400114c35ad1b2481c48ff471e180e9c93d93;hp=f800ff03294c2b9bdfd0863a62ea1a801ed1bdaa;hpb=9010458d614641c8103b1d06b479e0c80aa1dcda;p=gitmo%2FMouse.git 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, ;