X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FMethod.pm;h=75f4f6b6961bafc1f9705d70aa74f0c36907cebc;hb=fd2b172a4657cb6cc47976d2e66cdba4bdfa579d;hp=c6aa879ddf92bf1629a3a4550939cd5c0324fa51;hpb=b36cef5c9ef6b86439ed67cd94be97bec04037bf;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Meta/Method.pm b/lib/Mouse/Meta/Method.pm index c6aa879..75f4f6b 100644 --- a/lib/Mouse/Meta/Method.pm +++ b/lib/Mouse/Meta/Method.pm @@ -9,9 +9,9 @@ use overload fallback => 1, ; -sub wrap{ +sub wrap { my $class = shift; - + unshift @_, 'body' if @_ % 2 != 0; return $class->_new(@_); } @@ -54,7 +54,7 @@ Mouse::Meta::Method - A Mouse Method metaclass =head1 VERSION -This document describes Mouse version 0.70 +This document describes Mouse version 0.87 =head1 DESCRIPTION