lib/App/Followme/TextData.pm

filter: Statementstmt 100% 30 / 30 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 10 / 10 Podpod 50.0% 1 / 2 totaltotal 97.6% 41 / 42 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/App/Followme/Guide.pm ↑ Summary lib/App/Followme/CreateGallery.pm »
1 package App::Followme::TextData;
2  
3 3 ▶use 5.008005;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 ▶use integer;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use lib '../..';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 3 ▶use base qw(App::Followme::FileData);
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 ▶use App::Followme::FIO;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 3 ▶use App::Followme::Web;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 3 our $VERSION = "2.03";
14  
15 #----------------------------------------------------------------------
16 # Read the default parameter values
17  
18 28 ▶sub parameters {
Subroutine parameters: called CC=1 SCAR=0.0
Pod documented
19 28 my ($self) = @_;
20  
21 return (
22 28 extension => 'md',
23 text_pkg => 'Text::Markdown',
24 text_method => 'markdown',
25 );
26 }
27  
28 #----------------------------------------------------------------------
29 # Convert content block markup to html
30  
31 50 ▶sub fetch_as_html {
Subroutine fetch_as_html: called CC=1 SCAR=0.0
Pod undocumented
32 50 my ($self, $content_block) = @_;
33  
34 50 my $method = $self->{text_method};
35 50 return $self->{text}->$method($content_block);
36 }
37  
38 3 1;
39 __END__
« lib/App/Followme/Guide.pm ↑ Summary lib/App/Followme/CreateGallery.pm »