Elemental/Element/Pod5/Nonpod.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 15 / 15 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
as_pod_string
1.0
CRAP 1.0
« Elemental/Element/Pod5/Data.pm ↑ Summary Elemental/Element/Pod5/Ordinary.pm »
1 package Pod::Elemental::Element::Pod5::Nonpod 0.103006;
2 # ABSTRACT: a non-pod element in a Pod document
3  
4 11 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 11 with 'Pod::Elemental::Flat';
6 11 with 'Pod::Elemental::Autoblank';
7  
8 #pod =head1 OVERVIEW
9 #pod
10 #pod A Pod5::Nonpod element represents a hunk of non-Pod content found in a Pod
11 #pod document tree. It is equivalent to a
12 #pod L<Generic::Nonpod|Pod::Elemental::Element::Generic::Nonpod> element, with the
13 #pod following differences:
14 #pod
15 #pod =over 4
16 #pod
17 #pod =item * it includes L<Pod::Elemental::Autoblank>
18 #pod
19 #pod =item * when producing a pod string, it wraps the non-pod content in =cut/=pod
20 #pod
21 #pod =back
22 #pod
23 #pod =cut
24  
25 11 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
26  
27 1 ▶sub as_pod_string {
Subroutine as_pod_string: called CC=1 SCAR=0.0
28 1 my ($self) = @_;
29 1 return sprintf "=cut\n%s=pod\n", $self->content;
30 }
31  
32 11 __PACKAGE__->meta->make_immutable;
33  
34 11 1;
35  
36 __END__
« Elemental/Element/Pod5/Data.pm ↑ Summary Elemental/Element/Pod5/Ordinary.pm »