From: Dave Rolsky Date: Sat, 22 Mar 2008 18:04:24 +0000 (+0000) Subject: Added summaries for all of the existing recipes X-Git-Tag: 0_55~260 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f7f3648d0b31f6b8c9505df3830943f0fe93b657;p=gitmo%2FMoose.git Added summaries for all of the existing recipes --- diff --git a/lib/Moose/Cookbook.pod b/lib/Moose/Cookbook.pod index 811c5fb..70f4294 100644 --- a/lib/Moose/Cookbook.pod +++ b/lib/Moose/Cookbook.pod @@ -23,27 +23,32 @@ for common questions and problems people have with Moose. =item L - The (always classic) B example -I +A simple Moose-based class. Demonstrated Moose attributes and subclassing. =item L - A simple B example -I +A slightly more complex Moose class. Demonstrates using a method +modifier in a subclass. =item L - A lazy B example -I +Demonstrates several attribute features, including types, weak +references, predicates ("does this object have a foo?"), defaults, and +lazy attribute construction. =item L - Subtypes, and modeling a simple B class hierarchy -I +Introduces the creation and use of custom types, a C method, +and the use of C in a subclass. =item L - More subtypes, coercion in a B class -I +More type examples, including the use of type coercions. =item L - The augment/inner example -I +Demonstrates the use of C method modifiers, a way of turning +the usual method overriding style "inside-out". =item L - Making Moose fast with immutable (TODO) @@ -65,7 +70,9 @@ I =item L - The Moose::Role example -I +Demonstrates roles, which are also sometimes known as traits or +mix-ins. Roles provide a method of code re-use which is orthogonal to +subclassing. =item L - Advanced Role Composition (TODO) @@ -87,7 +94,10 @@ I =item L - The meta-attribute example -I +One way to extend Moose is to provide your own attribute +metaclasses. Attribute metaclasses let you extend attribute +declarations (with C) and behavior to provide additional +attribute functionality. =item L - The meta-attribute trait example (TODO) @@ -132,4 +142,4 @@ L This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. -=cut \ No newline at end of file +=cut