File Coverage

lib/Apache/SiteConfig/Directive.pm
Criterion Covered Total %
statement 1 3 33.3
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 2 4 50.0


line stmt bran cond sub pod time code
1             package Apache::SiteConfig::Directive;
2 1     1   338 use Moose;
  0            
  0            
3             use Apache::SiteConfig::Statement;
4              
5             extends 'Apache::SiteConfig::Statement';
6              
7             has name => ( is => 'rw' );
8             has values => ( is => 'rw' , isa => 'ArrayRef' , default => sub { [ ] } );
9              
10             sub to_string {
11             my ($self) = @_;
12             my $indent = ' ' x 4 x $self->get_level;
13             return $indent . join(' ' , $self->name, @{ $self->values } );
14             }
15              
16             1;