From: gfx Date: Sat, 3 Oct 2009 07:25:10 +0000 (+0900) Subject: Fix meta() method X-Git-Tag: 0.37_02~16 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=152e575977686383156384335b6598542c0c1ac9;p=gitmo%2FMouse.git Fix meta() method --- diff --git a/lib/Mouse/Util.pm b/lib/Mouse/Util.pm index c00ab5e..2a03160 100644 --- 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 {