X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FRole%2FMethod.pm;h=e4ad5034f3097fa5392881174fabd646218c4ec3;hp=e86f9a1a0689d0f5934d0b94f25364ba75de236d;hb=6a97bbdad44391f2a587165cb81fcf8aedc642ac;hpb=034587d897c53d4df84085a9229334bd2d51f1c6 diff --git a/lib/Mouse/Meta/Role/Method.pm b/lib/Mouse/Meta/Role/Method.pm index e86f9a1..e4ad503 100755 --- a/lib/Mouse/Meta/Role/Method.pm +++ b/lib/Mouse/Meta/Role/Method.pm @@ -4,6 +4,13 @@ use Mouse::Util; # enables strict and warnings use Mouse::Meta::Method; our @ISA = qw(Mouse::Meta::Method); +sub _new { + my $class = shift; + return $class->meta->new_object(@_) + if $class ne __PACKAGE__; + return bless {@_}, $class; +} + 1; __END__ @@ -13,7 +20,7 @@ Mouse::Meta::Role::Method - A Mouse Method metaclass for Roles =head1 VERSION -This document describes Mouse version 0.40 +This document describes Mouse version 0.40_04 =head1 SEE ALSO