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