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 Moose::Meta::Attribute::Custom::Collection::Array;
22 sub register_implementation { 'MooseX::AttributeHelpers::Collection::Array' }
33 MooseX::AttributeHelpers::Collection::Array
39 use MooseX::AttributeHelpers;
42 metaclass => 'Collection::Array',
44 isa => 'ArrayRef[Int]',
45 default => sub { [] },
47 'push' => 'add_options',
48 'pop' => 'remove_last_option',
54 This module provides an Array attribute which provides a number of
55 array operations. See L<MooseX::AttributeHelpers::MethodProvider::Array>
64 =item B<method_provider>
66 =item B<has_method_provider>
74 All complex software has bugs lurking in it, and this module is no
75 exception. If you find a bug please either email me, or add the bug
80 Stevan Little E<lt>stevan@iinteractive.comE<gt>
82 =head1 COPYRIGHT AND LICENSE
84 Copyright 2007 by Infinity Interactive, Inc.
86 L<http://www.iinteractive.com>
88 This library is free software; you can redistribute it and/or modify
89 it under the same terms as Perl itself.