2 package MooseX::AttributeHelpers::Collection::Array;
4 use Moose::Util::TypeConstraints;
7 our $AUTHORITY = 'cpan:STEVAN';
9 use MooseX::AttributeHelpers::MethodProvider::Array;
11 extends 'MooseX::AttributeHelpers::Collection';
13 has '+method_provider' => (
14 default => 'MooseX::AttributeHelpers::MethodProvider::Array'
17 sub helper_type { 'ArrayRef' }
21 # register the alias ...
22 package Moose::Meta::Attribute::Custom::Collection::Array;
23 sub register_implementation { 'MooseX::AttributeHelpers::Collection::Array' }
40 metaclass => 'Collection',
42 isa => 'ArrayRef[Int]',
43 default => sub { [] },
45 'push' => 'add_options',
46 'pop' => 'remove_last_option',
56 All complex software has bugs lurking in it, and this module is no
57 exception. If you find a bug please either email me, or add the bug
62 Stevan Little E<lt>stevan@iinteractive.comE<gt>
64 =head1 COPYRIGHT AND LICENSE
66 Copyright 2007 by Infinity Interactive, Inc.
68 L<http://www.iinteractive.com>
70 This library is free software; you can redistribute it and/or modify
71 it under the same terms as Perl itself.