X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FRole%2FMethod.pm;h=73ea90c3da885a3cea2cc84ebf72ab0e3c66bb91;hb=6e1e5b31f9ff0a46de1d7e396840da18c385962d;hp=e86f9a1a0689d0f5934d0b94f25364ba75de236d;hpb=034587d897c53d4df84085a9229334bd2d51f1c6;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Meta/Role/Method.pm b/lib/Mouse/Meta/Role/Method.pm index e86f9a1..73ea90c 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__ @@ -13,7 +23,7 @@ Mouse::Meta::Role::Method - A Mouse Method metaclass for Roles =head1 VERSION -This document describes Mouse version 0.40 +This document describes Mouse version 0.50_06 =head1 SEE ALSO