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