add shallow_clone to Array and Hash traits
[gitmo/Moose.git] / lib / Moose / Meta / Attribute / Native / Trait / Bool.pm
index b636230..1b60fc8 100644 (file)
@@ -1,15 +1,6 @@
 package Moose::Meta::Attribute::Native::Trait::Bool;
 use Moose::Role;
 
-our $VERSION = '1.15';
-$VERSION = eval $VERSION;
-our $AUTHORITY = 'cpan:STEVAN';
-
-use Moose::Meta::Method::Accessor::Native::Bool::not;
-use Moose::Meta::Method::Accessor::Native::Bool::set;
-use Moose::Meta::Method::Accessor::Native::Bool::toggle;
-use Moose::Meta::Method::Accessor::Native::Bool::unset;
-
 with 'Moose::Meta::Attribute::Native::Trait';
 
 sub _default_is  { 'rw' }
@@ -19,11 +10,11 @@ no Moose::Role;
 
 1;
 
-=pod
+# ABSTRACT: Helper trait for Bool attributes
 
-=head1 NAME
+__END__
 
-Moose::Meta::Attribute::Native::Trait::Bool - Helper trait for Bool attributes
+=pod
 
 =head1 SYNOPSIS
 
@@ -51,8 +42,13 @@ Moose::Meta::Attribute::Native::Trait::Bool - Helper trait for Bool attributes
 
 =head1 DESCRIPTION
 
-This provides a simple boolean attribute, which supports most of the
-basic math operations.
+This trait provides native delegation methods for boolean values. A boolean is
+a scalar which can be C<1>, C<0>, C<"">, or C<undef>.
+
+=head1 DEFAULT TYPE
+
+If you don't provide an C<isa> value for your attribute, it will default to
+C<Bool>.
 
 =head1 PROVIDED METHODS
 
@@ -84,17 +80,4 @@ Equivalent of 'not C<$value>'.
 
 See L<Moose/BUGS> for details on reporting bugs.
 
-=head1 AUTHOR
-
-Jason May
-
-=head1 COPYRIGHT AND LICENSE
-
-Copyright 2007-2009 by Infinity Interactive, Inc.
-
-L<http://www.iinteractive.com>
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
 =cut