package Moose::Meta::Attribute::Native::Trait::Array;
use Moose::Role;
-our $VERSION = '1.9900';
-$VERSION = eval $VERSION;
our $AUTHORITY = 'cpan:STEVAN';
with 'Moose::Meta::Attribute::Native::Trait';
1;
+# ABSTRACT: Helper trait for array delegation
+
__END__
=pod
-=head1 NAME
-
-Moose::Meta::Attribute::Native::Trait::Array - Helper trait for array delegation
-
=head1 SYNOPSIS
package Stuff;
just like Perl's core C<map> function. This method requires a subroutine which
implements the transformation.
-Note that if you add or subtract values within the supplied coderef, the
-values are I<not> saved back to the attribute. You need to use the attribute
-writer wrapped around the map call for that.
-
my @mod_options = $stuff->map_options( sub { $_ . "-tag" } );
print "@mod_options\n"; # prints "foo-tag bar-tag baz-tag boo-tag"
See L<Moose/BUGS> for details on reporting bugs.
-=head1 AUTHOR
-
-Stevan Little E<lt>stevan@iinteractive.comE<gt>
-
-=head1 COPYRIGHT AND LICENSE
-
-Copyright 2007-2010 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