File Coverage

blib/lib/Pod/Elemental/Flat.pm
Criterion Covered Total %
statement 6 11 54.5
branch n/a
condition n/a
subroutine 2 3 66.6
pod 0 1 0.0
total 8 15 53.3


line stmt bran cond sub pod time code
1             package Pod::Elemental::Flat;
2             # ABSTRACT: a content-only pod paragraph
3             $Pod::Elemental::Flat::VERSION = '0.103005';
4 15     15   14178 use Moose::Role;
  15         63321  
  15         68  
5              
6 15     15   81443 use namespace::autoclean;
  15         33  
  15         107  
7              
8             #pod =head1 OVERVIEW
9             #pod
10             #pod Pod::Elemental::Flat is a role that is included to indicate that a class
11             #pod represents a Pod paragraph that will have no children, and represents only its
12             #pod own content. Generally it is used for text paragraphs.
13             #pod
14             #pod =cut
15              
16             with 'Pod::Elemental::Paragraph';
17             excludes 'Pod::Elemental::Node';
18              
19             sub as_debug_string {
20 0     0 0   my ($self) = @_;
21              
22 0           my $moniker = ref $self;
23 0           $moniker =~ s/\APod::Elemental::Element:://;
24              
25 0           my $summary = $self->_summarize_string($self->content);
26              
27 0           return "$moniker <$summary>";
28             }
29              
30             1;
31              
32             __END__
33              
34             =pod
35              
36             =encoding UTF-8
37              
38             =head1 NAME
39              
40             Pod::Elemental::Flat - a content-only pod paragraph
41              
42             =head1 VERSION
43              
44             version 0.103005
45              
46             =head1 OVERVIEW
47              
48             Pod::Elemental::Flat is a role that is included to indicate that a class
49             represents a Pod paragraph that will have no children, and represents only its
50             own content. Generally it is used for text paragraphs.
51              
52             =head1 AUTHOR
53              
54             Ricardo SIGNES <rjbs@cpan.org>
55              
56             =head1 COPYRIGHT AND LICENSE
57              
58             This software is copyright (c) 2020 by Ricardo SIGNES.
59              
60             This is free software; you can redistribute it and/or modify it under
61             the same terms as the Perl 5 programming language system itself.
62              
63             =cut