2 package MooseX::AttributeHelpers::Trait::Collection::Array;
6 $VERSION = eval $VERSION;
7 our $AUTHORITY = 'cpan:STEVAN';
9 use MooseX::AttributeHelpers::MethodProvider::Array;
11 with 'MooseX::AttributeHelpers::Trait::Collection';
13 has 'method_provider' => (
16 predicate => 'has_method_provider',
17 default => 'MooseX::AttributeHelpers::MethodProvider::Array'
20 sub helper_type { 'ArrayRef' }
32 MooseX::AttributeHelpers::Collection::Array
38 use MooseX::AttributeHelpers;
41 metaclass => 'Collection::Array',
43 isa => 'ArrayRef[Int]',
44 default => sub { [] },
46 'push' => 'add_options',
47 'pop' => 'remove_last_option',
53 This module provides an Array attribute which provides a number of
54 array operations. See L<MooseX::AttributeHelpers::MethodProvider::Array>
63 =item B<method_provider>
65 =item B<has_method_provider>
73 All complex software has bugs lurking in it, and this module is no
74 exception. If you find a bug please either email me, or add the bug
79 Stevan Little E<lt>stevan@iinteractive.comE<gt>
81 =head1 COPYRIGHT AND LICENSE
83 Copyright 2007-2009 by Infinity Interactive, Inc.
85 L<http://www.iinteractive.com>
87 This library is free software; you can redistribute it and/or modify
88 it under the same terms as Perl itself.