blib/lib/Book/Bilingual/Dline.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 20 CC 2 SCAR 12.8
CC
2
Cov
0%
new
6.0
to_html
2.0
BEGIN
2.0
CRAP 3.6
1 package Book::Bilingual::Dline;
2 # ABSTRACT: A dual language line
3 use Mojo::Base -base;
4 use Carp;
5  
6 has 'class';
7 has 'str';
8  
9 sub new { ## ({class:STRING,str:STRING}) :> Dline
10 @_ > 1
11 ? $_[0]->SUPER::new($_[1])
12 : $_[0]->SUPER::new({ class => '', str => '' })
13 }
14 sub to_html { ## () :> HTML
15 my ($self) = @_;
16 return '<div class="'.$self->class.'">'.$self->str.'</div>';
17 }
18  
19 1;