line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MooseX::AttributeHelpers::Collection::List; |
2
|
22
|
|
|
22
|
|
95
|
use Moose; |
|
22
|
|
|
|
|
34
|
|
|
22
|
|
|
|
|
154
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.25'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
extends 'Moose::Meta::Attribute'; |
7
|
|
|
|
|
|
|
with 'MooseX::AttributeHelpers::Trait::Collection::List'; |
8
|
|
|
|
|
|
|
|
9
|
22
|
|
|
22
|
|
103622
|
no Moose; |
|
22
|
|
|
|
|
34
|
|
|
22
|
|
|
|
|
96
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# register the alias ... |
12
|
|
|
|
|
|
|
package # hide me from search.cpan.org |
13
|
|
|
|
|
|
|
Moose::Meta::Attribute::Custom::Collection::List; |
14
|
2
|
|
|
2
|
|
1150
|
sub register_implementation { 'MooseX::AttributeHelpers::Collection::List' } |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
1; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
__END__ |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=pod |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=encoding UTF-8 |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 NAME |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
MooseX::AttributeHelpers::Collection::List |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 VERSION |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
version 0.25 |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 SYNOPSIS |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
package Stuff; |
36
|
|
|
|
|
|
|
use Moose; |
37
|
|
|
|
|
|
|
use MooseX::AttributeHelpers; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
has 'options' => ( |
40
|
|
|
|
|
|
|
metaclass => 'Collection::List', |
41
|
|
|
|
|
|
|
is => 'ro', |
42
|
|
|
|
|
|
|
isa => 'ArrayRef[Int]', |
43
|
|
|
|
|
|
|
default => sub { [] }, |
44
|
|
|
|
|
|
|
provides => { |
45
|
|
|
|
|
|
|
map => 'map_options', |
46
|
|
|
|
|
|
|
grep => 'filter_options', |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
); |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 DESCRIPTION |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
This module provides an List attribute which provides a number of |
53
|
|
|
|
|
|
|
list operations. See L<MooseX::AttributeHelpers::MethodProvider::List> |
54
|
|
|
|
|
|
|
for more details. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 METHODS |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=over 4 |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=item B<meta> |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=item B<method_provider> |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=item B<has_method_provider> |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=item B<helper_type> |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=back |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 SUPPORT |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Bugs may be submitted through L<the RT bug tracker|https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-AttributeHelpers> |
73
|
|
|
|
|
|
|
(or L<bug-MooseX-AttributeHelpers@rt.cpan.org|mailto:bug-MooseX-AttributeHelpers@rt.cpan.org>). |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
There is also a mailing list available for users of this distribution, at |
76
|
|
|
|
|
|
|
L<http://lists.perl.org/list/moose.html>. |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
There is also an irc channel available for users of this distribution, at |
79
|
|
|
|
|
|
|
L<C<#moose> on C<irc.perl.org>|irc://irc.perl.org/#moose>. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head1 AUTHOR |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Stevan Little <stevan@iinteractive.com> |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
This software is copyright (c) 2007 by Stevan Little and Infinity Interactive, Inc. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
90
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=cut |