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=d74454a327a44886b910f970118bada99c979b12;hp=79b55d4e6a289956bbb480da1f642f7e265c7ff6;hb=6e168432fa69bbe87ff0dd12e355a8b5d99a1a9c;hpb=f3bb863f6a6ef09220bbf51bc4cea3874d862776 diff --git a/lib/Mouse/Meta/Role/Method.pm b/lib/Mouse/Meta/Role/Method.pm index 79b55d4..d74454a 100755 --- a/lib/Mouse/Meta/Role/Method.pm +++ b/lib/Mouse/Meta/Role/Method.pm @@ -1,18 +1,27 @@ package Mouse::Meta::Role::Method; -use strict; -use warnings; +use Mouse::Util; # enables strict and warnings use Mouse::Meta::Method; our @ISA = qw(Mouse::Meta::Method); -1; +sub _new { + my $class = shift; + return $class->meta->new_object(@_) + if $class ne __PACKAGE__; + return bless {@_}, $class; +} +1; __END__ =head1 NAME Mouse::Meta::Role::Method - A Mouse Method metaclass for Roles +=head1 VERSION + +This document describes Mouse version 0.40_05 + =head1 SEE ALSO L