X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FMethod%2FDelegation.pm;h=6046e90b4adfb66264a094ec92cef7f2fac89406;hp=ea863817a13b8d443b86ffee683d0e34d7974a3d;hb=bd76a699d654075009bb9fd707021721eecf8299;hpb=4c0fe06fa87e7c2c4ed1666e77ed52ae020f19d7 diff --git a/lib/Mouse/Meta/Method/Delegation.pm b/lib/Mouse/Meta/Method/Delegation.pm index ea86381..6046e90 100644 --- a/lib/Mouse/Meta/Method/Delegation.pm +++ b/lib/Mouse/Meta/Method/Delegation.pm @@ -3,8 +3,9 @@ use Mouse::Util qw(:meta); # enables strict and warnings use Scalar::Util; sub _generate_delegation{ - my (undef, $attribute, $metaclass, $reader, $handle_name, $method_to_call) = @_; + my (undef, $attribute, $handle_name, $method_to_call) = @_; + my $reader = $attribute->get_read_method_ref(); return sub { my $instance = shift; my $proxy = $instance->$reader(); @@ -34,7 +35,7 @@ Mouse::Meta::Method::Delegation - A Mouse method generator for delegation method =head1 VERSION -This document describes Mouse version 0.41 +This document describes Mouse version 0.47 =head1 SEE ALSO