X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FAttributeHelpers%2FString.pm;h=7ef81232ca20c69223b1dc562711689c0522b692;hb=720fa35be1e2cb679dc0d146f2cef1d459cb4b5e;hp=b9666975a229d191ef2cc0028044b0411e98de10;hpb=8683383a5764f3417a6c5282e4303315f1171c4e;p=gitmo%2FMooseX-AttributeHelpers.git diff --git a/lib/MooseX/AttributeHelpers/String.pm b/lib/MooseX/AttributeHelpers/String.pm index b966697..7ef8123 100644 --- a/lib/MooseX/AttributeHelpers/String.pm +++ b/lib/MooseX/AttributeHelpers/String.pm @@ -68,59 +68,10 @@ above. This allows for a very basic attribute definition: has 'foo' => (metaclass => 'String'); $obj->append_foo; -=head1 METHODS - -=over 4 - -=item B - -=back - =head1 PROVIDED METHODS -It is important to note that all those methods do in place -modification of the value stored in the attribute. - -=over 4 - -=item I - -Increments the value stored in this slot using the magical string autoincrement -operator. Note that Perl doesn't provide analogeous behavior in C<-->, so -C is not available. - -=item I C<$string> - -Append a string, like C<.=>. - -=item I C<$string> - -Prepend a string. - -=item I C<$pattern> C<$replacement> - -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> - -Like I but without the replacement. Provided mostly for completeness. - -=item C - -L - -=item C - -L - -=item C - -Sets the string to the empty string (not the value passed to C). - -=back +The methods for this metaclass are provided by +L. =head1 BUGS