Elemental/Element/Generic/Command.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Elemental/Autochomp.pm ↑ Summary Elemental/Element/Generic/Nonpod.pm »
1 package Pod::Elemental::Element::Generic::Command 0.103006;
2 # ABSTRACT: a Pod =command element
3  
4 15 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 15 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 #pod =head1 OVERVIEW
9 #pod
10 #pod Generic::Command elements are paragraph elements implementing the
11 #pod Pod::Elemental::Command role. They provide the command method by implementing
12 #pod a read/write command attribute.
13 #pod
14 #pod =attr command
15 #pod
16 #pod This attribute contains the name of the command, like C<head1> or C<encoding>.
17 #pod
18 #pod =cut
19  
20 15 has command => (
21 is => 'rw',
22 isa => 'Str',
23 required => 1,
24 );
25  
26 15 with 'Pod::Elemental::Command';
27  
28 15 __PACKAGE__->meta->make_immutable;
29  
30 15 1;
31  
32 __END__
« Elemental/Autochomp.pm ↑ Summary Elemental/Element/Generic/Nonpod.pm »