X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FRole%2FMethod.pm;h=1733e95d95073cb1c250277f140b8b9dc59e98a0;hb=420d69e8116ad08b0fbeab3289af4df9f64d3b70;hp=d74454a327a44886b910f970118bada99c979b12;hpb=6e168432fa69bbe87ff0dd12e355a8b5d99a1a9c;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 d74454a..1733e95 --- 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_05 +This document describes Mouse version 0.86 =head1 SEE ALSO