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=44926765380a5e19bd779d3aae121bf1b2415d8a;hp=1d3d0a0d10fc49fdc25775f2fcbbb717bef8d7af;hb=065f79e7cd03765f26c6ea276aaf9b3c5897886a;hpb=8e64d0fa5da64639074f77d3da9b2f7aa20cce93 diff --git a/lib/Mouse/Meta/Role/Method.pm b/lib/Mouse/Meta/Role/Method.pm index 1d3d0a0..4492676 100755 --- a/lib/Mouse/Meta/Role/Method.pm +++ b/lib/Mouse/Meta/Role/Method.pm @@ -1,10 +1,30 @@ package Mouse::Meta::Role::Method; -use strict; -use warnings; +use Mouse::Util; # enables strict and warnings -use base qw(Mouse::Meta::Method); +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_02 + +=head1 SEE ALSO + +L + +=cut +