=head1 DESCRIPTION
This is a role which provides the method generators for
-L<Moose::Meta::Attribute::Trait::Native::Counter>.
+L<Moose::Meta::Attribute::Trait::Native::Counter>. Please check there for
+documentation on what methods are provided.
=head1 METHODS
=back
-=head1 PROVIDED METHODS
-
-=over 4
-
-=item B<set>
-
-=item B<inc>
-
-=item B<dec>
-
-=item B<reset>
-
-=back
-
=head1 BUGS
All complex software has bugs lurking in it, and this module is no
use Moose::AttributeHelpers;
has 'counter' => (
- metaclass => 'Counter',
+ traits => ['Counter'],
is => 'ro',
isa => 'Num',
default => 0,
incremented and decremented.
If your attribute definition does not include any of I<is>, I<isa>,
-I<default> or I<handles> but does use the C<Counter> metaclass,
+I<default> or I<handles> but does use the C<Counter> trait,
then this module applies defaults as in the L</SYNOPSIS>
above. This allows for a very basic counter definition:
- has 'foo' => (metaclass => 'Counter');
+ has 'foo' => (traits => ['Counter']);
$obj->inc_foo;
-=head1 METHODS
-
-=over 4
-
-=item B<meta>
-
-=item B<method_provider>
-
-=item B<has_method_provider>
-
-=back
-
=head1 PROVIDED METHODS
-It is important to note that all those methods do in place
-modification of the value stored in the attribute.
+These methods are implemented in
+L<Moose::Meta::Attribute::Native::MethodProvider::Counter>. It is important to
+note that all those methods do in place modification of the value stored in
+the attribute.
=over 4
=back
+=head1 METHODS
+
+=over 4
+
+=item B<meta>
+
+=item B<method_provider>
+
+=item B<has_method_provider>
+
+=back
+
=head1 BUGS
All complex software has bugs lurking in it, and this module is no