All unit tests passing with refactored stuff, documentation updated significantly.
[gitmo/MooseX-AttributeHelpers.git] / lib / MooseX / AttributeHelpers / MethodProvider / Number.pm
index 9699619..a7929d0 100644 (file)
@@ -12,6 +12,7 @@ my %ops = (
     div => '/',
     mod => '%',
 );
+
 foreach my $method (keys %ops)
 {
     my $s = $ops{$method};
@@ -48,26 +49,25 @@ L<MooseX::AttributeHelpers::Number>.
 
 =head1 PROVIDED METHODS
 
-It is important to note that all those methods do in place modification of the 
-value stored in the attribute.  All methods but 'set' are plain mathematical
-operators, as in $current_value = $current_value I<op>$argument, where I<op> is
-the operator listed next to the method name.
+All methods but 'set' are plain mathematical operators, as in 
+C<$current_value = $current_value OP $argument>
+where OP is the operator listed next to the method name.
 
 =over 4
 
-=item B<add>: +
+=item B<add> +
 
-=item B<sub>: -
+=item B<sub> -
 
-=item B<mul>: *
+=item B<mul> *
 
-=item B<div>: /
+=item B<div> /
 
-=item B<mod>: %
+=item B<mod> %
 
-=item B<abs>: |$val|, or $val = abs($value).
+=item B<abs> |$val|, or $val = abs($value).
 
-=item B<set>:
+=item B<set>
 
 A way to set the value instead of 'setter' or 'is => "rw"'.  This method is
 provided for convenience.