X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FMethod%2FDelegation.pm;h=195db6a88ff8efd22e57ec96bd13cb5b35c93325;hb=refs%2Ftags%2F0.46;hp=a64e74211e7a36b155933a2c8f9b3070eb5769c9;hpb=4819ed36c693b311abb3f7d9965e1eeac1748345;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Meta/Method/Delegation.pm b/lib/Mouse/Meta/Method/Delegation.pm index a64e742..195db6a 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.43 +This document describes Mouse version 0.46 =head1 SEE ALSO