some POD advances
[gitmo/MooseX-AttributeHelpers.git] / lib / MooseX / AttributeHelpers / Collection / Array.pm
CommitLineData
22d869ff 1
2package MooseX::AttributeHelpers::Collection::Array;
3use Moose;
8c651099 4use Moose::Util::TypeConstraints;
22d869ff 5
6our $VERSION = '0.01';
7our $AUTHORITY = 'cpan:STEVAN';
8
b9dc8e2f 9use MooseX::AttributeHelpers::MethodProvider::Array;
d26633fc 10
b9dc8e2f 11extends 'MooseX::AttributeHelpers::Collection';
8ba40fb0 12
b9dc8e2f 13has '+method_provider' => (
14 default => 'MooseX::AttributeHelpers::MethodProvider::Array'
22d869ff 15);
16
b9dc8e2f 17sub helper_type { 'ArrayRef' }
18
22d869ff 19no Moose;
22d869ff 20
21# register the alias ...
d26633fc 22package Moose::Meta::Attribute::Custom::Collection::Array;
22d869ff 23sub register_implementation { 'MooseX::AttributeHelpers::Collection::Array' }
24
25
261;
27
28__END__
29
30=pod
31
32=head1 NAME
33
34=head1 SYNOPSIS
35
36 package Stuff;
37 use Moose;
38
39 has 'options' => (
40 metaclass => 'Collection',
41 is => 'ro',
8c651099 42 isa => 'ArrayRef[Int]',
22d869ff 43 default => sub { [] },
44 provides => {
45 'push' => 'add_options',
46 'pop' => 'remove_last_option',
47 }
48 );
49
50=head1 DESCRIPTION
51
52=head1 METHODS
53
54=head1 BUGS
55
56All complex software has bugs lurking in it, and this module is no
57exception. If you find a bug please either email me, or add the bug
58to cpan-RT.
59
60=head1 AUTHOR
61
62Stevan Little E<lt>stevan@iinteractive.comE<gt>
63
64=head1 COPYRIGHT AND LICENSE
65
66Copyright 2007 by Infinity Interactive, Inc.
67
68L<http://www.iinteractive.com>
69
70This library is free software; you can redistribute it and/or modify
71it under the same terms as Perl itself.
72
8a9cea9b 73=cut