Bump to 0.20
[gitmo/MooseX-AttributeHelpers.git] / lib / MooseX / AttributeHelpers / Collection / Array.pm
CommitLineData
22d869ff 1
2package MooseX::AttributeHelpers::Collection::Array;
3use Moose;
22d869ff 4
fda444e7 5our $VERSION = '0.20';
38430345 6$VERSION = eval $VERSION;
22d869ff 7our $AUTHORITY = 'cpan:STEVAN';
8
090583df 9extends 'Moose::Meta::Attribute';
10with 'MooseX::AttributeHelpers::Trait::Collection::Array';
b9dc8e2f 11
22d869ff 12no Moose;
22d869ff 13
14# register the alias ...
0f31cc28 15package # hide me from search.cpan.org
16 Moose::Meta::Attribute::Custom::Collection::Array;
22d869ff 17sub register_implementation { 'MooseX::AttributeHelpers::Collection::Array' }
18
19
201;
21
22__END__
23
24=pod
25
26=head1 NAME
27
5431dff2 28MooseX::AttributeHelpers::Collection::Array
29
22d869ff 30=head1 SYNOPSIS
31
32 package Stuff;
33 use Moose;
5431dff2 34 use MooseX::AttributeHelpers;
22d869ff 35
36 has 'options' => (
457dc4fb 37 metaclass => 'Collection::Array',
22d869ff 38 is => 'ro',
8c651099 39 isa => 'ArrayRef[Int]',
22d869ff 40 default => sub { [] },
41 provides => {
42 'push' => 'add_options',
43 'pop' => 'remove_last_option',
44 }
45 );
46
47=head1 DESCRIPTION
48
5431dff2 49This module provides an Array attribute which provides a number of
50array operations. See L<MooseX::AttributeHelpers::MethodProvider::Array>
51for more details.
52
22d869ff 53=head1 METHODS
54
5431dff2 55=over 4
56
b91f57af 57=item B<meta>
58
5431dff2 59=item B<method_provider>
60
61=item B<has_method_provider>
62
63=item B<helper_type>
64
65=back
66
22d869ff 67=head1 BUGS
68
69All complex software has bugs lurking in it, and this module is no
70exception. If you find a bug please either email me, or add the bug
71to cpan-RT.
72
73=head1 AUTHOR
74
75Stevan Little E<lt>stevan@iinteractive.comE<gt>
76
77=head1 COPYRIGHT AND LICENSE
78
9c5d164e 79Copyright 2007-2009 by Infinity Interactive, Inc.
22d869ff 80
81L<http://www.iinteractive.com>
82
83This library is free software; you can redistribute it and/or modify
84it under the same terms as Perl itself.
85
8a9cea9b 86=cut