=head1 DESCRIPTION
This is a role which provides the method generators for
-L<Moose::Meta::Attribute::Trait::Native::Bool>.
+L<Moose::Meta::Attribute::Trait::Native::Bool>. Please check there for
+documentation on what methods are provided.
=head1 METHODS
=back
-=head1 PROVIDED METHODS
-
-=over 4
-
-=item B<set>
-
-=item B<unset>
-
-=item B<toggle>
-
-=item B<not>
-
-=back
-
=head1 BUGS
All complex software has bugs lurking in it, and this module is no
use Moose::Role;
use Moose::Meta::Attribute::Native::MethodProvider::Bool;
-our $VERSION = '0.87';
+our $VERSION = '0.87';
$VERSION = eval $VERSION;
our $AUTHORITY = 'cpan:STEVAN';
with 'Moose::Meta::Attribute::Native::Trait';
-sub _default_is { 'rw' }
+sub _default_is { 'rw' }
sub _helper_type { 'Bool' }
# NOTE: we don't use the method provider for this module since many of
use Moose::AttributeHelpers;
has 'is_lit' => (
- metaclass => 'Bool',
+ traits => ['Bool'],
is => 'rw',
isa => 'Bool',
default => 0,
This provides a simple boolean attribute, which supports most of the
basic math operations.
-=head1 METHODS
-
-=over 4
-
-=item B<meta>
-
-=item B<method_constructors>
-
-=item B<has_method_provider>
-
-=item B<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::Bool>. 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_constructors>
+
+=item B<has_method_provider>
+
+=item B<method_provider>
+
+=back
+
=head1 BUGS
All complex software has bugs lurking in it, and this module is no