Simplify the rest of the attribute helpers
[gitmo/MooseX-AttributeHelpers.git] / lib / MooseX / AttributeHelpers / Collection / List.pm
CommitLineData
457dc4fb 1
2package MooseX::AttributeHelpers::Collection::List;
3use Moose;
4
5our $VERSION = '0.01';
6our $AUTHORITY = 'cpan:STEVAN';
7
090583df 8extends 'Moose::Meta::Attribute';
9with 'MooseX::AttributeHelpers::Trait::Collection::List';
457dc4fb 10
11no Moose;
12
13# register the alias ...
0f31cc28 14package # hide me from search.cpan.org
15 Moose::Meta::Attribute::Custom::Collection::List;
457dc4fb 16sub register_implementation { 'MooseX::AttributeHelpers::Collection::List' }
17
18
191;
20
21__END__
22
23=pod
24
25=head1 NAME
26
27MooseX::AttributeHelpers::Collection::List
28
29=head1 SYNOPSIS
30
31 package Stuff;
32 use Moose;
33 use MooseX::AttributeHelpers;
34
35 has 'options' => (
36 metaclass => 'Collection::List',
37 is => 'ro',
38 isa => 'ArrayRef[Int]',
39 default => sub { [] },
40 provides => {
41 map => 'map_options',
42 grep => 'fitler_options',
43 }
44 );
45
46=head1 DESCRIPTION
47
48This module provides an List attribute which provides a number of
49list operations. See L<MooseX::AttributeHelpers::MethodProvider::List>
50for more details.
51
52=head1 METHODS
53
54=over 4
55
b91f57af 56=item B<meta>
57
457dc4fb 58=item B<method_provider>
59
60=item B<has_method_provider>
61
62=item B<helper_type>
63
64=back
65
66=head1 BUGS
67
68All complex software has bugs lurking in it, and this module is no
69exception. If you find a bug please either email me, or add the bug
70to cpan-RT.
71
72=head1 AUTHOR
73
74Stevan Little E<lt>stevan@iinteractive.comE<gt>
75
76=head1 COPYRIGHT AND LICENSE
77
99c62fb8 78Copyright 2007-2008 by Infinity Interactive, Inc.
457dc4fb 79
80L<http://www.iinteractive.com>
81
82This library is free software; you can redistribute it and/or modify
83it under the same terms as Perl itself.
84
85=cut