Fix meta() method
gfx [Sat, 3 Oct 2009 07:25:10 +0000 (16:25 +0900)]
lib/Mouse/Util.pm

index c00ab5e..2a03160 100644 (file)
@@ -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 {