From: Christian Walde Date: Tue, 8 May 2012 13:16:27 +0000 (+0200) Subject: order of possible values for `is` is now sorted by writability X-Git-Tag: v0.091005~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6577509a9699d1ca16e4ed9a53a0ccf6a0b9c0ba;p=gitmo%2FMoo.git order of possible values for `is` is now sorted by writability --- diff --git a/lib/Moo.pm b/lib/Moo.pm index 3af5e7c..a00416d 100644 --- a/lib/Moo.pm +++ b/lib/Moo.pm @@ -351,14 +351,11 @@ The options for C are as follows: =item * is -B, may be C, C, C or C. +B, may be C, C, C or C. C generates an accessor that dies if you attempt to write to it - i.e. a getter only - by defaulting C to the name of the attribute. -C generates a normal getter/setter by defaulting C to the -name of the attribute. - C generates a reader like C, but also sets C to 1 and C to C<_build_${attribute_name}> to allow on-demand generated attributes. This feature was my attempt to fix my incompetence when @@ -370,6 +367,9 @@ C<_set_${attribute_name}> for attributes that are designed to be written from inside of the class, but read-only from outside. This feature comes from L. +C generates a normal getter/setter by defaulting C to the +name of the attribute. + =item * isa Takes a coderef which is meant to validate the attribute. Unlike L Moo