projects
/
gitmo/Mouse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
80b463b
)
Make M::M::Method->wrap compatible
Fuji, Goro [Fri, 24 Sep 2010 04:37:19 +0000 (13:37 +0900)]
lib/Mouse/Meta/Method.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Mouse/Meta/Method.pm
b/lib/Mouse/Meta/Method.pm
index
c6aa879
..
851e8b7
100644
(file)
--- 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(@_);
}