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