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=1bc0227d199f04f33aa3033a4aa36c00fab10087;hp=eb946512d5c66f2abb75694e2f82a7042247b8a6;hb=e9148d131f7c3d6a1e3fc9e7c491f80fb5dde90b;hpb=6cfa1e5e70616fb102915489c02d8347ffa912fb diff --git a/lib/Mouse/Meta/Role/Method.pm b/lib/Mouse/Meta/Role/Method.pm index eb94651..1bc0227 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 base qw(Mouse::Meta::Method); - -1; - -__END__ - +package Mouse::Meta::Role::Method; +use Mouse::Util; # enables strict and warnings + +use Mouse::Meta::Method; +our @ISA = qw(Mouse::Meta::Method); + +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.50 + +=head1 SEE ALSO + +L + +=cut +