| 1 | package Excel::Template::Container::Format; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | BEGIN { | ||||||||||
| 6 | 1 | ▶ | use vars qw(@ISA); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | ▶ | @ISA = qw( Excel::Template::Container ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 1 | ▶ | use Excel::Template::Container; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | } | ||||||||||
| 11 | |||||||||||
| 12 | 1 | ▶ | use Excel::Template::Format; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | sub render | ||||||||||
| 15 | { | ||||||||||
| 16 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
render: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 17 | 0 | my ($context) = @_; | |||||||||
| 18 | |||||||||||
| 19 | 0 | my $old_format = $context->active_format; | |||||||||
| 20 | |||||||||||
| 21 | 0 | my %values; | |||||||||
| 22 | 0 | ▶ | while ( my ($k, $v) = each %$self ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | 0 | $values{$k} = $context->resolve( $self, $k ); | |||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 0 | my $format = $context->format_object->copy( | |||||||||
| 27 | $context, $old_format, %values, | ||||||||||
| 28 | ); | ||||||||||
| 29 | 0 | $context->active_format($format); | |||||||||
| 30 | |||||||||||
| 31 | 0 | my $child_success = $self->iterate_over_children($context); | |||||||||
| 32 | |||||||||||
| 33 | 0 | $context->active_format($old_format); | |||||||||
| 34 | |||||||||||
| 35 | 0 | return $child_success; | |||||||||
| 36 | } | ||||||||||
| 37 | |||||||||||
| 38 | 1 | 1; | |||||||||
| 39 | __END__ | ||||||||||