X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FAttributeHelpers%2FCounter.pm;h=9a2cea21010fc6b999f4b6ac76f8a894601bb4a5;hb=4a35a0ad2542b236a6ea02022d55c4193a58a321;hp=a67d0435254bbe7b983c122738d50986d4c00c07;hpb=0224b8d27f1b2c4646d59fdb4e2cc0d2e793053f;p=gitmo%2FMooseX-AttributeHelpers.git diff --git a/lib/MooseX/AttributeHelpers/Counter.pm b/lib/MooseX/AttributeHelpers/Counter.pm index a67d043..9a2cea2 100644 --- a/lib/MooseX/AttributeHelpers/Counter.pm +++ b/lib/MooseX/AttributeHelpers/Counter.pm @@ -2,7 +2,8 @@ package MooseX::AttributeHelpers::Counter; use Moose; -our $VERSION = '0.03'; +our $VERSION = '0.17'; +$VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; extends 'Moose::Meta::Attribute'; @@ -89,17 +90,23 @@ modification of the value stored in the attribute. =over 4 +=item I + +Set the counter to the specified value. + =item I -Increments the value stored in this slot by 1. +Increments the value stored in this slot by 1. Providing an argument will +cause the counter to be increased by specified amount. =item I -Decrements the value stored in this slot by 1. +Decrements the value stored in this slot by 1. Providing an argument will +cause the counter to be increased by specified amount. =item I -Resets the value stored in this slot to it's default value. +Resets the value stored in this slot to it's default value. =back