X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FAttribute%2FNative%2FTrait%2FNumber.pm;h=30e59e6f72622b55ea9847e26a0a2d4a2827cf3e;hb=60f0816092ffe11986388dd2bba56a356b697843;hp=f56c82431d5313e5bdf5c416a0277a62164ed350;hpb=9610c1d2be5ceb367ec30633643d6d9bce82bfe0;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Attribute/Native/Trait/Number.pm b/lib/Moose/Meta/Attribute/Native/Trait/Number.pm index f56c824..30e59e6 100644 --- a/lib/Moose/Meta/Attribute/Native/Trait/Number.pm +++ b/lib/Moose/Meta/Attribute/Native/Trait/Number.pm @@ -1,7 +1,7 @@ package Moose::Meta::Attribute::Native::Trait::Number; use Moose::Role; -our $VERSION = '0.89'; +our $VERSION = '1.09'; $VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; @@ -58,7 +58,7 @@ no Moose::Role; =head1 NAME -Moose::Meta::Attribute::Native::Trait::Number +Moose::Meta::Attribute::Native::Trait::Number - Helper trait for Num attributes =head1 SYNOPSIS @@ -66,9 +66,9 @@ Moose::Meta::Attribute::Native::Trait::Number use Moose; has 'integer' => ( - metaclass => 'Number', + traits => ['Number'], is => 'ro', - isa => 'Int', + isa => 'Num', default => 5, handles => { set => 'set', @@ -108,19 +108,19 @@ Adds the current value of the attribute to C<$value>. =item B -Subtracts the current value of the attribute to C<$value>. +Subtracts C<$value> from the current value of the attribute. =item B -Multiplies the current value of the attribute to C<$value>. +Multiplies the current value of the attribute by C<$value>. =item B -Divides the current value of the attribute to C<$value>. +Divides the current value of the attribute by C<$value>. =item B -Modulus the current value of the attribute to C<$value>. +Returns the current value of the attribute modulo C<$value>. =item B @@ -140,9 +140,7 @@ Sets the current value of the attribute to its absolute value. =head1 BUGS -All complex software has bugs lurking in it, and this module is no -exception. If you find a bug please either email me, or add the bug -to cpan-RT. +See L for details on reporting bugs. =head1 AUTHOR