line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Data::Transpose::Prefix; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
29104
|
use strict; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
47
|
|
4
|
1
|
|
|
1
|
|
8
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
55
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=head1 NAME |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
Data::Transpose::Prefix - prefix subclass for Data::Transpose |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head2 prefix |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
Prefix for field names. Required. |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 METHODS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head2 field |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
Overrides method from C. |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=cut |
23
|
|
|
|
|
|
|
|
24
|
1
|
|
|
1
|
|
832
|
use Moo; |
|
1
|
|
|
|
|
20033
|
|
|
1
|
|
|
|
|
9
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
extends 'Data::Transpose'; |
27
|
|
|
|
|
|
|
|
28
|
1
|
|
|
1
|
|
4111
|
use Data::Transpose::Prefix::Field; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
142
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
has prefix => ( |
31
|
|
|
|
|
|
|
is => 'ro', |
32
|
|
|
|
|
|
|
required => 1, |
33
|
|
|
|
|
|
|
); |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub field { |
36
|
1
|
|
|
1
|
1
|
24
|
my ($self, $name) = @_; |
37
|
1
|
|
|
|
|
3
|
my ($object); |
38
|
|
|
|
|
|
|
|
39
|
1
|
|
|
|
|
16
|
$object = Data::Transpose::Prefix::Field->new( |
40
|
|
|
|
|
|
|
name => $name, |
41
|
|
|
|
|
|
|
prefix => $self->prefix, |
42
|
|
|
|
|
|
|
); |
43
|
|
|
|
|
|
|
|
44
|
1
|
|
|
|
|
137
|
push @{$self->_fields}, $object; |
|
1
|
|
|
|
|
12
|
|
45
|
|
|
|
|
|
|
|
46
|
1
|
|
|
|
|
5
|
return $object; |
47
|
|
|
|
|
|
|
}; |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1; |