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=3802b15d2a25d868f24d20d8604baebd966345d1;hp=30124934717814022f674bc968c0d3085b7c56c7;hb=refs%2Ftags%2F0.50_04;hpb=9b9e4b6566015d6d6e2aa6c745644174efa74623 diff --git a/lib/Mouse/Meta/Role/Method.pm b/lib/Mouse/Meta/Role/Method.pm index 3012493..3802b15 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.39 +This document describes Mouse version 0.50_04 =head1 SEE ALSO