File Coverage

blib/lib/Embedix/ECD/Option.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod 1 1 100.0
total 13 13 100.0


line stmt bran cond sub pod time code
1             package Embedix::ECD::Option;
2              
3 5     5   24 use strict;
  5         7  
  5         169  
4 5     5   23 use vars qw(@ISA);
  5         9  
  5         881  
5              
6             @ISA = qw(Embedix::ECD);
7              
8             # I imagine different types of ECD nodes may have different attributes.
9             # I hope I'm right.
10              
11             #
12             #_______________________________________
13             sub toString {
14 1     1 1 3 my $self = shift;
15 1         16 my $opt = $self->getFormatOptions(@_);
16              
17             return
18 1         8791 "\n".
19             $opt->{space} . "
20             $self->attributeToString($opt) . # for the attributes
21             $self->SUPER::toString(@_) . # for the children
22             $opt->{space} . "\n"
23             }
24              
25             1;
26              
27             __END__