Hmm. I think I did something odd in here...
[gitmo/MooseX-AttributeHelpers.git] / lib / MooseX / AttributeHelpers / Collection / List.pm
CommitLineData
457dc4fb 1
2package MooseX::AttributeHelpers::Collection::List;
3use Moose;
e993b282 4use MooseX::AttributeHelpers::Sugar;
5
6extends 'MooseX::AttributeHelpers::Collection';
457dc4fb 7
8our $VERSION = '0.01';
9our $AUTHORITY = 'cpan:STEVAN';
10
e993b282 11define_attribute_helper (
12 helper_type => 'ArrayRef',
13 method_provider => 'MooseX::AttributeHelpers::MethodProvider::List',
14 shortcut => 'Collection::List',
457dc4fb 15);
16
457dc4fb 17no Moose;
e993b282 18no MooseX::AttributeHelpers::Sugar;
457dc4fb 19
201;
21
22__END__
23
24=pod
25
26=head1 NAME
27
28MooseX::AttributeHelpers::Collection::List
29
30=head1 SYNOPSIS
31
32 package Stuff;
33 use Moose;
34 use MooseX::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 => 'fitler_options',
44 }
45 );
46
47=head1 DESCRIPTION
48
49This module provides an List attribute which provides a number of
e993b282 50list operations.
457dc4fb 51
e993b282 52=head1 PROVIDED METHODS
457dc4fb 53
e993b282 54The methods for this metaclass are provided by
55L<MooseX::AttributeHelpers::MethodProvider::List>.
457dc4fb 56
57=head1 BUGS
58
59All complex software has bugs lurking in it, and this module is no
60exception. If you find a bug please either email me, or add the bug
61to cpan-RT.
62
63=head1 AUTHOR
64
65Stevan Little E<lt>stevan@iinteractive.comE<gt>
66
67=head1 COPYRIGHT AND LICENSE
68
99c62fb8 69Copyright 2007-2008 by Infinity Interactive, Inc.
457dc4fb 70
71L<http://www.iinteractive.com>
72
73This library is free software; you can redistribute it and/or modify
74it under the same terms as Perl itself.
75
76=cut