File Coverage

blib/lib/Pod/Abstract/Filter/cut.pm
Criterion Covered Total %
statement 9 15 60.0
branch n/a
condition n/a
subroutine 3 4 75.0
pod 1 1 100.0
total 13 20 65.0


line stmt bran cond sub pod time code
1             package Pod::Abstract::Filter::cut;
2 1     1   1039 use strict;
  1         2  
  1         33  
3 1     1   5 use warnings;
  1         2  
  1         32  
4              
5 1     1   5 use base qw(Pod::Abstract::Filter);
  1         2  
  1         178  
6              
7             our $VERSION = '0.20';
8              
9             =head1 NAME
10              
11             Pod::Abstract::Filter::cut - paf command to remove non-processed (cut)
12             portions of a Pod document.
13              
14             =cut
15              
16             sub filter {
17 0     0 1   my $self = shift;
18 0           my $pa = shift;
19            
20 0           my @cut = $pa->select("//#cut");
21 0           foreach my $cut (@cut) {
22 0           $cut->detach;
23             }
24            
25 0           return $pa;
26             }
27              
28             =head1 AUTHOR
29              
30             Ben Lilburne
31              
32             =head1 COPYRIGHT AND LICENSE
33              
34             Copyright (C) 2009 Ben Lilburne
35              
36             This program is free software; you can redistribute it and/or modify
37             it under the same terms as Perl itself.
38              
39             =cut
40              
41             1;