line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
4
|
|
|
4
|
|
24
|
use strict; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
123
|
|
2
|
4
|
|
|
4
|
|
19
|
use warnings; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
162
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package MooseX::AttributeIndexes::Provider; |
5
|
|
|
|
|
|
|
BEGIN { |
6
|
4
|
|
|
4
|
|
117
|
$MooseX::AttributeIndexes::Provider::AUTHORITY = 'cpan:KENTNL'; |
7
|
|
|
|
|
|
|
} |
8
|
|
|
|
|
|
|
{ |
9
|
|
|
|
|
|
|
$MooseX::AttributeIndexes::Provider::VERSION = '1.0.3'; |
10
|
|
|
|
|
|
|
} |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# ABSTRACT: A role that advertises an object is capable of providing metadata. |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
# $Id:$ |
15
|
4
|
|
|
4
|
|
3082
|
use Moose::Role; |
|
4
|
|
|
|
|
15135
|
|
|
4
|
|
|
|
|
36
|
|
16
|
4
|
|
|
4
|
|
28941
|
use namespace::autoclean; |
|
4
|
|
|
|
|
6858
|
|
|
4
|
|
|
|
|
27
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
requires 'attribute_indexes'; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=pod |
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 1.0.3 |
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) 2013 by Kent Fredric. |
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 |