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=4bac14a4d05fb471effe617c8a812473d23eb153;hp=1d3d0a0d10fc49fdc25775f2fcbbb717bef8d7af;hb=a4cbb3cb944aa43521dfa69a9f04b206c6b7a6ea;hpb=bc71de540020f1b2b75bafd69e2021c103e1c4e3 diff --git a/lib/Mouse/Meta/Role/Method.pm b/lib/Mouse/Meta/Role/Method.pm index 1d3d0a0..4bac14a 100755 --- a/lib/Mouse/Meta/Role/Method.pm +++ b/lib/Mouse/Meta/Role/Method.pm @@ -1,10 +1,33 @@ 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, %args) = @_; + my $self = bless \%args, $class; + + if($class ne __PACKAGE__){ + $self->meta->_initialize_object($self, \%args); + } + return $self; +} +1; __END__ +=head1 NAME + +Mouse::Meta::Role::Method - A Mouse Method metaclass for Roles + +=head1 VERSION + +This document describes Mouse version 0.44 + +=head1 SEE ALSO + +L + +=cut +