Revision history for Perl extension MooseX-AttributeHelpers
-0.02
+0.02 Thurs. Sept. 13, 2007
+ ~~ some misc. doc updates ~~
+
* MooseX::AttributeHelpers::Base
- now providing subrefs for the reader and writer
methods to all the method provider constructors
lib/MooseX/AttributeHelpers/Number.pm
lib/MooseX/AttributeHelpers/Collection/Array.pm
lib/MooseX/AttributeHelpers/Collection/Hash.pm
+lib/MooseX/AttributeHelpers/Collection/List.pm
lib/MooseX/AttributeHelpers/Meta/Method/Provided.pm
lib/MooseX/AttributeHelpers/MethodProvider/Array.pm
lib/MooseX/AttributeHelpers/MethodProvider/Counter.pm
lib/MooseX/AttributeHelpers/MethodProvider/Hash.pm
+lib/MooseX/AttributeHelpers/MethodProvider/List.pm
t/000_load.t
t/001_basic_counter.t
t/002_basic_array.t
t/003_basic_hash.t
t/004_basic_number.t
+t/005_basic_list.t
t/010_array_from_role.t
t/100_collection_with_roles.t
t/pod.t
-MooseX::AttributeHelpers version 0.01
+MooseX::AttributeHelpers version 0.02
===========================
See the individual module documentation for more information
This is an early release of this module. Right now it is in great need
of documentation and tests in the test suite. However, we have used this
-module to great success at $work where it has been tested very thoroughly
+module to great success at C<$work> where it has been tested very thoroughly
and deployed into a major production site.
I plan on getting better docs and tests in the next few releases, but until
=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<inc>
+
+Increments the value stored in this slot by 1.
+
+=item I<dec>
+
+Decrements the value stored in this slot by 1.
+
+=item I<reset>
+
+Resets the value stored in this slot to it's default value.
+
+=back
+
=head1 BUGS
All complex software has bugs lurking in it, and this module is no
package MooseX::AttributeHelpers::MethodProvider::Array;
use Moose::Role;
-our $VERSION = '0.03';
+our $VERSION = '0.02';
our $AUTHORITY = 'cpan:STEVAN';
with 'MooseX::AttributeHelpers::MethodProvider::List';
package MooseX::AttributeHelpers::MethodProvider::Counter;
use Moose::Role;
-our $VERSION = '0.03';
+our $VERSION = '0.02';
our $AUTHORITY = 'cpan:STEVAN';
sub reset : method {
package MooseX::AttributeHelpers::MethodProvider::List;
use Moose::Role;
-our $VERSION = '0.02';
+our $VERSION = '0.01';
our $AUTHORITY = 'cpan:STEVAN';
sub count : method {
package MooseX::AttributeHelpers::Number;
use Moose;
-our $VERSION = '0.01';
+our $VERSION = '0.02';
our $AUTHORITY = 'cpan:STEVAN';
extends 'MooseX::AttributeHelpers::Base';
=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<set ($value)>
+
+Alternate way to set the value.
+
+=item I<add ($value)>
+
+Adds the current value of the attribute to C<$value>.
+
+=item I<sub ($value)>
+
+Subtracts the current value of the attribute to C<$value>.
+
+=item I<mul ($value)>
+
+Multiplies the current value of the attribute to C<$value>.
+
+=item I<div ($value)>
+
+Divides the current value of the attribute to C<$value>.
+
+=item I<mod ($value)>
+
+Modulus the current value of the attribute to C<$value>.
+
+=item I<abs>
+
+Sets the current value of the attribute to its absolute value.
+
+=back
+
=head1 BUGS
All complex software has bugs lurking in it, and this module is no