use Scalar::Util;
sub _generate_delegation{
- my (undef, $attribute, $metaclass, $reader, $handle_name, $method_to_call) = @_;
+ my (undef, $attribute, $handle_name, $method_to_call, @curried_args) = @_;
+ my $reader = $attribute->get_read_method_ref();
return sub {
my $instance = shift;
my $proxy = $instance->$reader();
. $error
);
}
- $proxy->$method_to_call(@_);
+ $proxy->$method_to_call(@curried_args, @_);
};
}
=head1 VERSION
-This document describes Mouse version 0.41
+This document describes Mouse version 0.50_01
=head1 SEE ALSO