lib/MojoMojo/Formatter/File/Text.pm

filter: Statementstmt 92.8% 13 / 14 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 2 / 2 totaltotal 90.9% 20 / 22 CC 2 SCAR 3.8
CC
2
Cov
88%
can_format
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« lib/MojoMojo/Formatter/Main.pm ↑ Summary lib/MojoMojo/Extensions/Counter.pm »
1 package MojoMojo::Formatter::File::Text;
2  
3 26 ▶use base qw/MojoMojo::Formatter/;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 26 ▶use MojoMojo::Formatter::Text;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7  
8 =head1 NAME
9  
10 MojoMojo::Formatter::File::Pod - format Pod File in xhtml
11  
12 =head1 DESCRIPTION
13  
14  
15 =head1 METHODS
16  
17 =over 4
18  
19 =item can_format
20  
21 Can format Pod File
22  
23 =cut
24  
25 1 ▶sub can_format {
Subroutine can_format: called CC=2 SCAR=7.6
Pod documented
26 1 my $self = shift;
27 1 my $type = shift;
28  
29 1 ▶ return 1 if ( $type eq "txt" );
Branch: 1 branch
BranchTrueFalseTotal
if $type eq "txt" 1 0 1
30 0 return 0;
31 }
32  
33  
34 =item to_xhtml
35  
36 takes Text and renders it as XHTML.
37  
38 =cut
39  
40 2 ▶sub to_xhtml {
Subroutine to_xhtml: called CC=1 SCAR=0.0
Pod documented
41 2 my ( $self, $text ) = @_;
42 2 my $result;
43 2 return MojoMojo::Formatter::Text->to_xhtml( $text );
44 }
45  
46  
47  
48  
49 =back
50  
51 =head1 SEE ALSO
52  
53 L<MojoMojo>,L<Module::Pluggable::Ordered>
54  
55 =head1 AUTHORS
56  
57 Daniel Brosseau <dab@catapulse.org>
58  
59 =head1 LICENSE
60  
61 This module is licensed under the same terms as Perl itself.
62  
63 =cut
64  
65 26 1;
« lib/MojoMojo/Formatter/Main.pm ↑ Summary lib/MojoMojo/Extensions/Counter.pm »