From: Dave Rolsky Date: Fri, 2 May 2008 14:59:52 +0000 (+0000) Subject: Document builder names clearly. X-Git-Tag: 0_55~197 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=398e7b2c8797c5a9047acdf196872b29846857cb;p=gitmo%2FMoose.git Document builder names clearly. --- diff --git a/lib/Moose/Cookbook/Recipe9.pod b/lib/Moose/Cookbook/Recipe9.pod index adcba0c..429d1bf 100644 --- a/lib/Moose/Cookbook/Recipe9.pod +++ b/lib/Moose/Cookbook/Recipe9.pod @@ -158,6 +158,11 @@ both start with an underscore. The C method I starts with an underscore, since you will want this to be private the vast majority of the time. +Note that the C method name is created by simply taking +"_build_" and appending the attribute name. This means that attributes +with a leading underscore like C<_animal> end up with a builder named +C<_build__animal>. + =head1 CONCLUSION The C option is a more OO-friendly version of the C