Composite now implemented.
[gitmo/MooseX-AttributeHelpers.git] / lib / MooseX / AttributeHelpers / Collection / List.pm
1 package MooseX::AttributeHelpers::Collection::List;
2 use Moose;
3 use MooseX::AttributeHelpers::MethodProvider::Collection::List;
4
5 extends 'MooseX::AttributeHelpers::Collection';
6
7 our $VERSION   = '0.01';
8 our $AUTHORITY = 'cpan:STEVAN';
9
10 __PACKAGE__->sugar(
11     method_provider  => 'Collection::List',
12     shortcut         => 'Collection::List',
13 );
14
15 no Moose;
16
17 1;
18
19 __END__
20
21 =pod
22
23 =head1 NAME
24
25 MooseX::AttributeHelpers::Collection::List
26
27 =head1 SYNOPSIS
28
29   package Stuff;
30   use Moose;
31   use MooseX::AttributeHelpers;
32   
33   has 'options' => (
34       metaclass => 'Collection::List',
35       is        => 'ro',
36       isa       => 'ArrayRef[Int]',
37       default   => sub { [] },
38       provides  => {
39           map  => 'map_options',
40           grep => 'fitler_options',
41       }
42   );
43
44 =head1 DESCRIPTION
45
46 This module provides an List attribute which provides a number of 
47 list operations. 
48
49 =head1 PROVIDED METHODS
50
51 The methods for this metaclass are provided by
52 L<MooseX::AttributeHelpers::MethodProvider::List>.
53
54 =head1 BUGS
55
56 All complex software has bugs lurking in it, and this module is no 
57 exception. If you find a bug please either email me, or add the bug
58 to cpan-RT.
59
60 =head1 AUTHOR
61
62 Stevan Little E<lt>stevan@iinteractive.comE<gt>
63
64 =head1 COPYRIGHT AND LICENSE
65
66 Copyright 2007-2008 by Infinity Interactive, Inc.
67
68 L<http://www.iinteractive.com>
69
70 This library is free software; you can redistribute it and/or modify
71 it under the same terms as Perl itself.
72
73 =cut