X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FRole%2FMethod.pm;h=90e803dc22bcbf18fc00e97ba9305950c99ff4cf;hb=d468e99669162209fc407bc22706a91b8675dbbc;hp=b47675184a34c956ec17ef8a7a42f62791cb5d09;hpb=1e5823974a557bd35b4aa4a5c1d1aecf1e5483d2;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 b476751..90e803d --- a/lib/Mouse/Meta/Role/Method.pm +++ b/lib/Mouse/Meta/Role/Method.pm @@ -4,11 +4,14 @@ use Mouse::Util; # enables strict and warnings use Mouse::Meta::Method; our @ISA = qw(Mouse::Meta::Method); -sub _new { - my $class = shift; - return $class->meta->new_object(@_) - if $class ne __PACKAGE__; - return bless {@_}, $class; +sub _new{ + my($class, %args) = @_; + my $self = bless \%args, $class; + + if($class ne __PACKAGE__){ + $self->meta->_initialize_object($self, \%args); + } + return $self; } 1; @@ -20,7 +23,7 @@ Mouse::Meta::Role::Method - A Mouse Method metaclass for Roles =head1 VERSION -This document describes Mouse version 0.40_06 +This document describes Mouse version 0.92 =head1 SEE ALSO