line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
6
|
|
|
6
|
|
514
|
use 5.006; # our, pragma |
|
6
|
|
|
|
|
15
|
|
2
|
6
|
|
|
6
|
|
22
|
use strict; |
|
6
|
|
|
|
|
7
|
|
|
6
|
|
|
|
|
95
|
|
3
|
6
|
|
|
6
|
|
19
|
use warnings; |
|
6
|
|
|
|
|
5
|
|
|
6
|
|
|
|
|
317
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package MooseX::AttributeIndexes::Provider; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '2.000001'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# ABSTRACT: A role that advertises an object is capable of providing metadata. |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY |
12
|
|
|
|
|
|
|
|
13
|
6
|
|
|
6
|
|
1919
|
use Moose::Role qw( requires ); |
|
6
|
|
|
|
|
338076
|
|
|
6
|
|
|
|
|
25
|
|
14
|
6
|
|
|
6
|
|
19132
|
use namespace::clean -except => 'meta'; |
|
6
|
|
|
|
|
27689
|
|
|
6
|
|
|
|
|
37
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
requires 'attribute_indexes'; |
17
|
|
|
|
|
|
|
|
18
|
6
|
|
|
6
|
|
1031
|
no Moose::Role; |
|
6
|
|
|
|
|
7
|
|
|
6
|
|
|
|
|
31
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__END__ |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=pod |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=encoding UTF-8 |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 NAME |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
MooseX::AttributeIndexes::Provider - A role that advertises an object is capable of providing metadata. |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 VERSION |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
version 2.000001 |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 SYNOPSIS |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
use Moose; |
39
|
|
|
|
|
|
|
with 'MooseX::AttributeIndexes::Provider'; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
sub attribute_indexes { |
42
|
|
|
|
|
|
|
return { |
43
|
|
|
|
|
|
|
foo => 'bar', |
44
|
|
|
|
|
|
|
}; |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 WARNING |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
This code is alpha, and its interface is prone to change. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 REQUIRES |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head2 C<attribute_indexes> |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
A sub that returns a hashref of index-name=>index-value entries |
56
|
|
|
|
|
|
|
for the given object |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 AUTHORS |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=over 4 |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=item * |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Kent Fredric <kentnl@cpan.org> |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=item * |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Jesse Luehrs <doy@cpan.org> |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=back |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
This software is copyright (c) 2017 by Kent Fredric <kentfredric@gmail.com>. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
77
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=cut |