From: Dave Rolsky Date: Wed, 3 Sep 2008 02:33:33 +0000 (+0000) Subject: Rename delegation to make it more distinct X-Git-Tag: 0.57~20 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fec9ca3ee6b7b69ae1dcb182733b44a5791e69f9;p=gitmo%2FMoose.git Rename delegation to make it more distinct --- diff --git a/lib/Moose/Intro.pod b/lib/Moose/Intro.pod index 288490e..425bb10 100644 --- a/lib/Moose/Intro.pod +++ b/lib/Moose/Intro.pod @@ -78,7 +78,7 @@ This is a I class definition! has 'last_login' => ( is => 'rw', isa => 'DateTime', - handles => { 'last_login_date' => 'date' }, + handles => { 'date_of_last_login' => 'date' }, ); sub login { @@ -287,7 +287,7 @@ delegations. A delegation is a method which delegates the real work to some attribute of the class. You saw this in the User example, where we defined a delegation for -the C method. Under the hood, this simple calls +the C method. Under the hood, this simple calls C on the User object's C attribute. =head2 Constructor