2 package MooseX::AttributeHelpers::Collection::Array;
6 our $AUTHORITY = 'cpan:STEVAN';
8 use MooseX::AttributeHelpers::MethodProvider::Array;
10 extends 'MooseX::AttributeHelpers::Collection';
12 has '+method_provider' => (
13 default => 'MooseX::AttributeHelpers::MethodProvider::Array'
16 sub helper_type { 'ArrayRef' }
20 # register the alias ...
21 package # hide me from search.cpan.org
22 Moose::Meta::Attribute::Custom::Collection::Array;
23 sub register_implementation { 'MooseX::AttributeHelpers::Collection::Array' }
34 MooseX::AttributeHelpers::Collection::Array
40 use MooseX::AttributeHelpers;
43 metaclass => 'Collection::Array',
45 isa => 'ArrayRef[Int]',
46 default => sub { [] },
48 'push' => 'add_options',
49 'pop' => 'remove_last_option',
55 This module provides an Array attribute which provides a number of
56 array operations. See L<MooseX::AttributeHelpers::MethodProvider::Array>
65 =item B<method_provider>
67 =item B<has_method_provider>
75 All complex software has bugs lurking in it, and this module is no
76 exception. If you find a bug please either email me, or add the bug
81 Stevan Little E<lt>stevan@iinteractive.comE<gt>
83 =head1 COPYRIGHT AND LICENSE
85 Copyright 2007-2008 by Infinity Interactive, Inc.
87 L<http://www.iinteractive.com>
89 This library is free software; you can redistribute it and/or modify
90 it under the same terms as Perl itself.