From: Chris Prather Date: Sun, 9 Aug 2009 20:34:34 +0000 (-0400) Subject: update Bool documentation X-Git-Tag: 0.89_02~78 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=55a9d564966aee166837ff445eafe009a439e328;p=gitmo%2FMoose.git update Bool documentation --- diff --git a/lib/Moose/Meta/Attribute/Native/MethodProvider/Bool.pm b/lib/Moose/Meta/Attribute/Native/MethodProvider/Bool.pm index f9b1825..0b14b64 100644 --- a/lib/Moose/Meta/Attribute/Native/MethodProvider/Bool.pm +++ b/lib/Moose/Meta/Attribute/Native/MethodProvider/Bool.pm @@ -39,7 +39,8 @@ Moose::Meta::Attribute::Native::MethodProvider::Bool =head1 DESCRIPTION This is a role which provides the method generators for -L. +L. Please check there for +documentation on what methods are provided. =head1 METHODS @@ -49,20 +50,6 @@ L. =back -=head1 PROVIDED METHODS - -=over 4 - -=item B - -=item B - -=item B - -=item B - -=back - =head1 BUGS All complex software has bugs lurking in it, and this module is no diff --git a/lib/Moose/Meta/Attribute/Native/Trait/Bool.pm b/lib/Moose/Meta/Attribute/Native/Trait/Bool.pm index 20cf24c..eaa9fd8 100644 --- a/lib/Moose/Meta/Attribute/Native/Trait/Bool.pm +++ b/lib/Moose/Meta/Attribute/Native/Trait/Bool.pm @@ -2,13 +2,13 @@ package Moose::Meta::Attribute::Native::Trait::Bool; 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 @@ -38,7 +38,7 @@ Moose::Meta::Attribute::Native::Trait::Bool use Moose::AttributeHelpers; has 'is_lit' => ( - metaclass => 'Bool', + traits => ['Bool'], is => 'rw', isa => 'Bool', default => 0, @@ -61,24 +61,12 @@ Moose::Meta::Attribute::Native::Trait::Bool This provides a simple boolean attribute, which supports most of the basic math operations. -=head1 METHODS - -=over 4 - -=item B - -=item B - -=item B - -=item B - -=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. It is important to +note that all those methods do in place modification of the value stored in +the attribute. =over 4 @@ -100,6 +88,20 @@ Equivalent of 'not C<$value>'. =back +=head1 METHODS + +=over 4 + +=item B + +=item B + +=item B + +=item B + +=back + =head1 BUGS All complex software has bugs lurking in it, and this module is no