From: Chris Prather Date: Wed, 29 Oct 2008 19:50:22 +0000 (+0000) Subject: doc patch for lazy_build and clean up some other attribute docs X-Git-Tag: 0.61~12 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=019f031d2f376d4d72b0e2daa8ac22995a0d6d6d;p=gitmo%2FMoose.git doc patch for lazy_build and clean up some other attribute docs --- diff --git a/lib/Moose.pm b/lib/Moose.pm index 4edb87c..31b531f 100644 --- a/lib/Moose.pm +++ b/lib/Moose.pm @@ -613,14 +613,14 @@ resolved to a class name. Also see L for a metaclass trait example. -=item I +=item I => Str The value of this key is the name of the method that will be called to obtain the value used to initialize the attribute. See the L for more information. -=item I +=item I => SCALAR | CODE The value of this key is the default value which will initialize the attribute. @@ -631,7 +631,7 @@ See the L for more information. -=item I +=item I => Str This may be a method name (referring to a method on the class with this attribute) or a CODE ref. The initializer is used to set the @@ -641,19 +641,25 @@ to). See the L for more information. -=item I +=item I => Str Allows you to clear the value, see the L for more information. -=item I +=item I => Str Basic test to see if a value has been set in the attribute, see the L for more information. +=item I => (0|1) + +Automatically define lazy => 1 as well as builder => "_build_$attr", clearer => +"clear_$attr', predicate => 'has_$attr' unless they are already defined. + + =back =item B %options>