Composite now implemented.
[gitmo/MooseX-AttributeHelpers.git] / lib / MooseX / AttributeHelpers / Collection / Array.pm
CommitLineData
22d869ff 1package MooseX::AttributeHelpers::Collection::Array;
2use Moose;
786dbc3d 3use MooseX::AttributeHelpers::MethodProvider::Collection::Array;
e993b282 4
5extends 'MooseX::AttributeHelpers::Collection';
22d869ff 6
7our $VERSION = '0.01';
8our $AUTHORITY = 'cpan:STEVAN';
9
786dbc3d 10__PACKAGE__->sugar(
11 method_provider => 'Collection::Array',
e993b282 12 shortcut => 'Collection::Array',
22d869ff 13);
14
22d869ff 15no Moose;
22d869ff 16
171;
18
19__END__
20
21=pod
22
23=head1 NAME
24
5431dff2 25MooseX::AttributeHelpers::Collection::Array
26
22d869ff 27=head1 SYNOPSIS
28
29 package Stuff;
30 use Moose;
5431dff2 31 use MooseX::AttributeHelpers;
22d869ff 32
33 has 'options' => (
457dc4fb 34 metaclass => 'Collection::Array',
22d869ff 35 is => 'ro',
8c651099 36 isa => 'ArrayRef[Int]',
22d869ff 37 default => sub { [] },
38 provides => {
39 'push' => 'add_options',
40 'pop' => 'remove_last_option',
41 }
42 );
43
44=head1 DESCRIPTION
45
5431dff2 46This module provides an Array attribute which provides a number of
e993b282 47array operations.
5431dff2 48
e993b282 49=head1 PROVIDED METHODS
5431dff2 50
e993b282 51The methods for this metaclass are provided by
52L<MooseX::AttributeHelpers::MethodProvider::Array>.
5431dff2 53
22d869ff 54=head1 BUGS
55
56All complex software has bugs lurking in it, and this module is no
57exception. If you find a bug please either email me, or add the bug
58to cpan-RT.
59
60=head1 AUTHOR
61
62Stevan Little E<lt>stevan@iinteractive.comE<gt>
63
64=head1 COPYRIGHT AND LICENSE
65
99c62fb8 66Copyright 2007-2008 by Infinity Interactive, Inc.
22d869ff 67
68L<http://www.iinteractive.com>
69
70This library is free software; you can redistribute it and/or modify
71it under the same terms as Perl itself.
72
8a9cea9b 73=cut