X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FCookbook%2FStyle.pod;h=67da29dbafa2c7923521d52d53385e00e76efe9c;hb=3b2c493c2b4dbd3bcecd077c39c1c22d14060658;hp=37e48594a1bc33dd73fce30338b108e21c7f1970;hpb=7c43d0794175f104fde915ff1411d474e302045c;p=gitmo%2FMoose.git diff --git a/lib/Moose/Cookbook/Style.pod b/lib/Moose/Cookbook/Style.pod index 37e4859..67da29d 100644 --- a/lib/Moose/Cookbook/Style.pod +++ b/lib/Moose/Cookbook/Style.pod @@ -2,11 +2,12 @@ =head1 NAME -Moose::Cookbook::Style - How to cook Moose with style +Moose::Cookbook::Style - The latest in trendy Moose cuisine =for authors -Please annotate all bad examples with comments so that they won't be copied by accodent +Please annotate all bad examples with comments so that they won't be copied by +accident =cut @@ -93,8 +94,9 @@ the C to C instead of overwriting it in C. =head2 Use C to alter C<@_> processing -If you need to change the way L<@_> is processed, use C, instead of -wrapping C. This ensures the behavior is subclassible, it keeps this logic +If you need to change the way C<@_> is processed, for example for +C<< Class->new( $single_param ) >>, use C instead of wrapping +C. This ensures the behavior is subclassible, it keeps this logic independent of the other aspects of construction, and can be made efficient using C. @@ -159,7 +161,7 @@ Will add a coercion to B attributes like: coerce => 1, ); -in a specific way. +when the actual coercion applies only to your specific cases. =head1 Clean up your package @@ -186,3 +188,17 @@ you are using. This will improve your code and also share the benefit with others. +=head1 AUTHOR + +Yuval (nothingmuch) Kogman + +=head1 COPYRIGHT AND LICENSE + +Copyright 2006-2008 by Infinity Interactive, Inc. + +L + +This library is free software; you can redistribute it and/or modify it under +the same terms as Perl itself. + +=cut