X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FMethod%2FDelegation.pm;h=51e4999e632f2eb521c0b35b99629ee5012ca530;hb=d990f7911dfd6a36d1dcc072e7adb72bf0379349;hp=90156e681047a6bd90a9a4a515dcd8cceb7e8d9c;hpb=81fd550d4417451af22a45f26b93829b4515bb89;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Meta/Method/Delegation.pm b/lib/Mouse/Meta/Method/Delegation.pm index 90156e6..51e4999 100644 --- a/lib/Mouse/Meta/Method/Delegation.pm +++ b/lib/Mouse/Meta/Method/Delegation.pm @@ -3,7 +3,7 @@ use Mouse::Util qw(:meta); # enables strict and warnings use Scalar::Util; sub _generate_delegation{ - my (undef, $attribute, $handle_name, $method_to_call) = @_; + my (undef, $attribute, $handle_name, $method_to_call, @curried_args) = @_; my $reader = $attribute->get_read_method_ref(); return sub { @@ -21,7 +21,7 @@ sub _generate_delegation{ . $error ); } - $proxy->$method_to_call(@_); + $proxy->$method_to_call(@curried_args, @_); }; } @@ -35,7 +35,7 @@ Mouse::Meta::Method::Delegation - A Mouse method generator for delegation method =head1 VERSION -This document describes Mouse version 0.45 +This document describes Mouse version 0.50_02 =head1 SEE ALSO