From: Chris Prather Date: Wed, 29 Oct 2008 19:44:35 +0000 (+0000) Subject: doc patch for lazy_build X-Git-Tag: 0.19~162 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=commitdiff_plain;h=5253d13d59d5d4268088af1459bc7a4adf34b6ea;hp=6430d96867560916b982239dbc583284559cd97e doc patch for lazy_build --- diff --git a/lib/Mouse.pm b/lib/Mouse.pm index 140a1ea..20283e8 100644 --- a/lib/Mouse.pm +++ b/lib/Mouse.pm @@ -360,6 +360,11 @@ context. In scalar context, the reference is returned (NOT the list length or bucket status). You must specify an appropriate type constraint to use auto_deref. +=item lazy_build => 0|1 + +Automatically define lazy => 1 as well as builder => "_build_$attr", clearer => +"clear_$attr', predicate => 'has_$attr' unless they are already defined. + =back =head2 confess error -> BOOM