Composite now implemented.
[gitmo/MooseX-AttributeHelpers.git] / lib / MooseX / AttributeHelpers / Collection / List.pm
CommitLineData
457dc4fb 1package MooseX::AttributeHelpers::Collection::List;
2use Moose;
786dbc3d 3use MooseX::AttributeHelpers::MethodProvider::Collection::List;
e993b282 4
5extends 'MooseX::AttributeHelpers::Collection';
457dc4fb 6
7our $VERSION = '0.01';
8our $AUTHORITY = 'cpan:STEVAN';
9
786dbc3d 10__PACKAGE__->sugar(
11 method_provider => 'Collection::List',
e993b282 12 shortcut => 'Collection::List',
457dc4fb 13);
14
457dc4fb 15no Moose;
457dc4fb 16
171;
18
19__END__
20
21=pod
22
23=head1 NAME
24
25MooseX::AttributeHelpers::Collection::List
26
27=head1 SYNOPSIS
28
29 package Stuff;
30 use Moose;
31 use MooseX::AttributeHelpers;
32
33 has 'options' => (
34 metaclass => 'Collection::List',
35 is => 'ro',
36 isa => 'ArrayRef[Int]',
37 default => sub { [] },
38 provides => {
39 map => 'map_options',
40 grep => 'fitler_options',
41 }
42 );
43
44=head1 DESCRIPTION
45
46This module provides an List attribute which provides a number of
e993b282 47list operations.
457dc4fb 48
e993b282 49=head1 PROVIDED METHODS
457dc4fb 50
e993b282 51The methods for this metaclass are provided by
52L<MooseX::AttributeHelpers::MethodProvider::List>.
457dc4fb 53
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.
457dc4fb 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
73=cut