X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FRole%2FMethod.pm;h=239bb30fc880da4438eb24a74710a5c5d35af1cf;hb=8f0a0704afaed02392c28a49ffdd830209d1508a;hp=caa1a3b51905dc3c5610396ec24134445ccce584;hpb=bc69ee88207ce5c53f5c02dbd44cfabfbe6bae70;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Meta/Role/Method.pm b/lib/Mouse/Meta/Role/Method.pm index caa1a3b..239bb30 100755 --- a/lib/Mouse/Meta/Role/Method.pm +++ b/lib/Mouse/Meta/Role/Method.pm @@ -4,6 +4,16 @@ 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__ @@ -11,6 +21,10 @@ __END__ Mouse::Meta::Role::Method - A Mouse Method metaclass for Roles +=head1 VERSION + +This document describes Mouse version 0.59 + =head1 SEE ALSO L