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