From: Fuji, Goro Date: Fri, 24 Sep 2010 04:37:19 +0000 (+0900) Subject: Make M::M::Method->wrap compatible X-Git-Tag: 0.71~13 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=commitdiff_plain;h=f530c77bb4771df59a5cb962c156db89eb0f34e7 Make M::M::Method->wrap compatible --- diff --git a/lib/Mouse/Meta/Method.pm b/lib/Mouse/Meta/Method.pm index c6aa879..851e8b7 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(@_); }