projects
/
gitmo/Mouse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
95b9522
)
Fix meta() method
gfx [Sat, 3 Oct 2009 07:25:10 +0000 (16:25 +0900)]
lib/Mouse/Util.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Mouse/Util.pm
b/lib/Mouse/Util.pm
index
c00ab5e
..
2a03160
100644
(file)
--- a/
lib/Mouse/Util.pm
+++ b/
lib/Mouse/Util.pm
@@
-322,7
+322,7
@@
sub not_supported{
}
sub meta{
- return Mouse::Meta::Class->initialize($_[0]);
+ return Mouse::Meta::Class->initialize(ref($_[0]) || $_[0]);
}
sub dump {