File Coverage

blib/lib/Pod/Elemental/Element/Generic/Command.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::Element::Generic::Command 0.103006;
2             # ABSTRACT: a Pod =command element
3              
4 15     15   7619 use Moose;
  15         456719  
  15         145  
5              
6 15     15   89656 use namespace::autoclean;
  15         8247  
  15         99  
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             has command => (
21             is => 'rw',
22             isa => 'Str',
23             required => 1,
24             );
25              
26             with 'Pod::Elemental::Command';
27              
28             __PACKAGE__->meta->make_immutable;
29              
30             1;
31              
32             __END__
33              
34             =pod
35              
36             =encoding UTF-8
37              
38             =head1 NAME
39              
40             Pod::Elemental::Element::Generic::Command - a Pod =command element
41              
42             =head1 VERSION
43              
44             version 0.103006
45              
46             =head1 OVERVIEW
47              
48             Generic::Command elements are paragraph elements implementing the
49             Pod::Elemental::Command role. They provide the command method by implementing
50             a read/write command attribute.
51              
52             =head1 PERL VERSION
53              
54             This library should run on perls released even a long time ago. It should work
55             on any version of perl released in the last five years.
56              
57             Although it may work on older versions of perl, no guarantee is made that the
58             minimum required version will not be increased. The version may be increased
59             for any reason, and there is no promise that patches will be accepted to lower
60             the minimum required perl.
61              
62             =head1 ATTRIBUTES
63              
64             =head2 command
65              
66             This attribute contains the name of the command, like C<head1> or C<encoding>.
67              
68             =head1 AUTHOR
69              
70             Ricardo SIGNES <cpan@semiotic.systems>
71              
72             =head1 COPYRIGHT AND LICENSE
73              
74             This software is copyright (c) 2022 by Ricardo SIGNES.
75              
76             This is free software; you can redistribute it and/or modify it under
77             the same terms as the Perl 5 programming language system itself.
78              
79             =cut