From: Dave Rolsky Date: Sun, 16 Aug 2009 03:06:49 +0000 (-0500) Subject: more doc editing for Native Traits X-Git-Tag: 0.89_02~63 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=157e0475594f2c7d9316491578a38a3b018de3e7;p=gitmo%2FMoose.git more doc editing for Native Traits --- diff --git a/lib/Moose/Meta/Attribute/Native/Trait/Bool.pm b/lib/Moose/Meta/Attribute/Native/Trait/Bool.pm index ee53971..d5e4dd0 100644 --- a/lib/Moose/Meta/Attribute/Native/Trait/Bool.pm +++ b/lib/Moose/Meta/Attribute/Native/Trait/Bool.pm @@ -79,7 +79,7 @@ Set the value to C<0>. =item I -Toggle the value. If it's true, set to false, and vice versa. +Toggles the value. If it's true, set to false, and vice versa. =item I diff --git a/lib/Moose/Meta/Attribute/Native/Trait/Counter.pm b/lib/Moose/Meta/Attribute/Native/Trait/Counter.pm index b82d351..a1a9751 100644 --- a/lib/Moose/Meta/Attribute/Native/Trait/Counter.pm +++ b/lib/Moose/Meta/Attribute/Native/Trait/Counter.pm @@ -92,7 +92,7 @@ the attribute. =over 4 -=item I +=item I Set the counter to the specified value. diff --git a/lib/Moose/Meta/Attribute/Native/Trait/Number.pm b/lib/Moose/Meta/Attribute/Native/Trait/Number.pm index 58c9d20..8ae4a34 100644 --- a/lib/Moose/Meta/Attribute/Native/Trait/Number.pm +++ b/lib/Moose/Meta/Attribute/Native/Trait/Number.pm @@ -98,31 +98,31 @@ package. =over 4 -=item I +=item B Alternate way to set the value. -=item I +=item B Adds the current value of the attribute to C<$value>. -=item I +=item B Subtracts the current value of the attribute to C<$value>. -=item I +=item B Multiplies the current value of the attribute to C<$value>. -=item I
+=item B Divides the current value of the attribute to C<$value>. -=item I +=item B Modulus the current value of the attribute to C<$value>. -=item I +=item B Sets the current value of the attribute to its absolute value. diff --git a/lib/Moose/Meta/Attribute/Native/Trait/String.pm b/lib/Moose/Meta/Attribute/Native/Trait/String.pm index 111dc53..1566644 100644 --- a/lib/Moose/Meta/Attribute/Native/Trait/String.pm +++ b/lib/Moose/Meta/Attribute/Native/Trait/String.pm @@ -89,40 +89,40 @@ the attribute. =over 4 -=item I +=item B Increments the value stored in this slot using the magical string autoincrement operator. Note that Perl doesn't provide analogous behavior in C<-->, so C is not available. -=item I C<$string> +=item B Append a string, like C<.=>. -=item I C<$string> +=item B Prepend a string. -=item I C<$pattern> C<$replacement> +=item B Performs a regexp substitution (L). There is no way to provide the C flag, but code references will be accepted for the replacement, causing the regex to be modified with a single C. C can be applied using the C operator. -=item I C<$pattern> +=item B -Like I but without the replacement. Provided mostly for completeness. +Like C but without the replacement. Provided mostly for completeness. -=item C +=item B L -=item C +=item B L -=item C +=item B Sets the string to the empty string (not the value passed to C).