line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::TableContent::Table::Row::Cell; |
2
|
|
|
|
|
|
|
|
3
|
20
|
|
|
20
|
|
146
|
use Moo; |
|
20
|
|
|
|
|
45
|
|
|
20
|
|
|
|
|
113
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '1.00'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
extends 'HTML::TableContent::Element'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
has header => ( is => 'rw' ); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
has '+html_tag' => ( |
12
|
|
|
|
|
|
|
default => 'td', |
13
|
|
|
|
|
|
|
); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
around _render_element => sub { |
16
|
|
|
|
|
|
|
my ( $orig, $self ) = (shift, shift); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
my $text = $self->$orig(@_); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
if ($self->has_nested) { |
21
|
|
|
|
|
|
|
my @nested = map { $_->render } $self->all_nested; |
22
|
|
|
|
|
|
|
my $nest = sprintf '%s' x @nested, @nested; |
23
|
|
|
|
|
|
|
$text = sprintf '%s%s', $text, $nest; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
return $text; |
27
|
|
|
|
|
|
|
}; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub header_template_attr { |
30
|
3
|
|
|
3
|
0
|
13
|
return $_[0]->header->template_attr; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub header_text { |
34
|
0
|
|
|
0
|
0
|
|
return $_[0]->header->text; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__END__ |