X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FRole%2FMethod.pm;h=b552111aa019f0fc1b965eb951ad742114a09053;hb=aba0f138748fe950b6819e8d3ec474a6046207c5;hp=79b55d4e6a289956bbb480da1f642f7e265c7ff6;hpb=f3bb863f6a6ef09220bbf51bc4cea3874d862776;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Meta/Role/Method.pm b/lib/Mouse/Meta/Role/Method.pm index 79b55d4..b552111 100755 --- a/lib/Mouse/Meta/Role/Method.pm +++ b/lib/Mouse/Meta/Role/Method.pm @@ -1,18 +1,30 @@ 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, %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.49 + =head1 SEE ALSO L