File Coverage

blib/lib/Pod/Elemental/Autoblank.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Pod::Elemental::Autoblank;
2             # ABSTRACT: a paragraph that always displays an extra blank line in Pod form
3             $Pod::Elemental::Autoblank::VERSION = '0.103005';
4 13     13   7980 use namespace::autoclean;
  13         34  
  13         95  
5 13     13   939 use Moose::Role;
  13         28  
  13         278  
6              
7             #pod =head1 OVERVIEW
8             #pod
9             #pod This role exists primarily to simplify elements produced by the Pod5
10             #pod transformer. Any element with this role composed into it will append an extra
11             #pod newline to the normally generated response to the C<as_pod_string> method.
12             #pod
13             #pod That's it!
14             #pod
15             #pod =cut
16              
17             around as_pod_string => sub {
18             my ($orig, $self, @arg) = @_;
19             my $str = $self->$orig(@arg);
20             "$str\n\n";
21             };
22              
23             1;
24              
25             __END__
26              
27             =pod
28              
29             =encoding UTF-8
30              
31             =head1 NAME
32              
33             Pod::Elemental::Autoblank - a paragraph that always displays an extra blank line in Pod form
34              
35             =head1 VERSION
36              
37             version 0.103005
38              
39             =head1 OVERVIEW
40              
41             This role exists primarily to simplify elements produced by the Pod5
42             transformer. Any element with this role composed into it will append an extra
43             newline to the normally generated response to the C<as_pod_string> method.
44              
45             That's it!
46              
47             =head1 AUTHOR
48              
49             Ricardo SIGNES <rjbs@cpan.org>
50              
51             =head1 COPYRIGHT AND LICENSE
52              
53             This software is copyright (c) 2020 by Ricardo SIGNES.
54              
55             This is free software; you can redistribute it and/or modify it under
56             the same terms as the Perl 5 programming language system itself.
57              
58             =cut