X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FRole%2FMethod.pm;h=0ba80c91e1248cd8d9bb10a715710a02e74a19b6;hb=8cf6cb3babb16036cf993765f283ef71295b8917;hp=8702e7c8748554b290af0c8506a58aff40f1c938;hpb=1820fffecb0bd1da64edc16ecde534178b841d14;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Meta/Role/Method.pm b/lib/Mouse/Meta/Role/Method.pm old mode 100755 new mode 100644 index 8702e7c..0ba80c9 --- a/lib/Mouse/Meta/Role/Method.pm +++ b/lib/Mouse/Meta/Role/Method.pm @@ -1,17 +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, %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.91 + =head1 SEE ALSO L