Make M::M::Method->wrap compatible
[gitmo/Mouse.git] / lib / Mouse / Meta / Method.pm
index c6aa879..851e8b7 100644 (file)
@@ -9,9 +9,9 @@ use overload
     fallback => 1,
 ;
 
-sub wrap{
+sub wrap {
     my $class = shift;
-
+    unshift @_, 'body' if @_ % 2 != 0;
     return $class->_new(@_);
 }