Commit | Line | Data |
457dc4fb |
1 | |
2 | package MooseX::AttributeHelpers::Collection::List; |
3 | use Moose; |
4 | |
5 | our $VERSION = '0.01'; |
6 | our $AUTHORITY = 'cpan:STEVAN'; |
7 | |
090583df |
8 | extends 'Moose::Meta::Attribute'; |
9 | with 'MooseX::AttributeHelpers::Trait::Collection::List'; |
457dc4fb |
10 | |
11 | no Moose; |
12 | |
13 | # register the alias ... |
0f31cc28 |
14 | package # hide me from search.cpan.org |
15 | Moose::Meta::Attribute::Custom::Collection::List; |
457dc4fb |
16 | sub register_implementation { 'MooseX::AttributeHelpers::Collection::List' } |
17 | |
18 | |
19 | 1; |
20 | |
21 | __END__ |
22 | |
23 | =pod |
24 | |
25 | =head1 NAME |
26 | |
27 | MooseX::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 | |
48 | This module provides an List attribute which provides a number of |
49 | list operations. See L<MooseX::AttributeHelpers::MethodProvider::List> |
50 | for 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 | |
68 | All complex software has bugs lurking in it, and this module is no |
69 | exception. If you find a bug please either email me, or add the bug |
70 | to cpan-RT. |
71 | |
72 | =head1 AUTHOR |
73 | |
74 | Stevan Little E<lt>stevan@iinteractive.comE<gt> |
75 | |
76 | =head1 COPYRIGHT AND LICENSE |
77 | |
99c62fb8 |
78 | Copyright 2007-2008 by Infinity Interactive, Inc. |
457dc4fb |
79 | |
80 | L<http://www.iinteractive.com> |
81 | |
82 | This library is free software; you can redistribute it and/or modify |
83 | it under the same terms as Perl itself. |
84 | |
85 | =cut |