From: Shawn M Moore Date: Tue, 13 Oct 2009 21:12:51 +0000 (-0400) Subject: Clarify who the invocant is in a delegate method call X-Git-Tag: 0.93~21 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b3b5ff5af272c16cad134502aaa21135c6f5d210;p=gitmo%2FMoose.git Clarify who the invocant is in a delegate method call --- diff --git a/lib/Moose/Manual/Delegation.pod b/lib/Moose/Manual/Delegation.pod index ffa0efc..da03fe7 100644 --- a/lib/Moose/Manual/Delegation.pod +++ b/lib/Moose/Manual/Delegation.pod @@ -43,7 +43,8 @@ The simplest form is to simply specify a list of methods: With this definition, we can call C<< $website->host >> and it "just works". Under the hood, Moose will call C<< $website->uri->host >> for -you. +you. Note that C<$website> is not automatically passed to the C +method; the invocant is C<< $website->uri >>. We can also define a mapping as a hash reference. This allows you to rename methods as part of the mapping: