line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
6
|
|
|
6
|
|
676
|
use 5.006; # our, pragma |
|
6
|
|
|
|
|
15
|
|
2
|
6
|
|
|
6
|
|
25
|
use strict; |
|
6
|
|
|
|
|
10
|
|
|
6
|
|
|
|
|
110
|
|
3
|
6
|
|
|
6
|
|
19
|
use warnings; |
|
6
|
|
|
|
|
6
|
|
|
6
|
|
|
|
|
345
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package MooseX::AttributeIndexes::Provider; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '2.000000'; |
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
|
|
2106
|
use Moose::Role qw( requires ); |
|
6
|
|
|
|
|
394836
|
|
|
6
|
|
|
|
|
28
|
|
14
|
6
|
|
|
6
|
|
22236
|
use namespace::clean -except => 'meta'; |
|
6
|
|
|
|
|
30827
|
|
|
6
|
|
|
|
|
35
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
requires 'attribute_indexes'; |
17
|
|
|
|
|
|
|
|
18
|
6
|
|
|
6
|
|
1213
|
no Moose::Role; |
|
6
|
|
|
|
|
8
|
|
|
6
|
|
|
|
|
41
|
|
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.000000 |
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) 2014 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 |