File Coverage

blib/lib/Slack/BlockKit/Role/HasBasicStyle.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 Slack::BlockKit::Role::HasBasicStyle 0.005;
2             # ABSTRACT: a Block Kit element with optional (bold, code, italic, strike) styles
3              
4 4     4   2735 use Moose::Role;
  4         8  
  4         39  
5              
6             #pod =head1 OVERVIEW
7             #pod
8             #pod This is a specialization of the role L<Slack::BlockKit::Role::HasBasicStyle>,
9             #pod in which the permitted C<styles> are:
10             #pod
11             #pod =for :list
12             #pod * bold
13             #pod * code
14             #pod * italic
15             #pod * strike
16             #pod
17             #pod =cut
18              
19             with 'Slack::BlockKit::Role::HasStyle' => {
20             styles => [ qw( bold italic strike code ) ],
21             };
22              
23 4     4   23218 no Moose::Role;
  4         10  
  4         23  
24             1;
25              
26             __END__
27              
28             =pod
29              
30             =encoding UTF-8
31              
32             =head1 NAME
33              
34             Slack::BlockKit::Role::HasBasicStyle - a Block Kit element with optional (bold, code, italic, strike) styles
35              
36             =head1 VERSION
37              
38             version 0.005
39              
40             =head1 OVERVIEW
41              
42             This is a specialization of the role L<Slack::BlockKit::Role::HasBasicStyle>,
43             in which the permitted C<styles> are:
44              
45             =over 4
46              
47             =item *
48              
49             bold
50              
51             =item *
52              
53             code
54              
55             =item *
56              
57             italic
58              
59             =item *
60              
61             strike
62              
63             =back
64              
65             =head1 PERL VERSION
66              
67             This module should work on any version of perl still receiving updates from
68             the Perl 5 Porters. This means it should work on any version of perl
69             released in the last two to three years. (That is, if the most recently
70             released version is v5.40, then this module should work on both v5.40 and
71             v5.38.)
72              
73             Although it may work on older versions of perl, no guarantee is made that the
74             minimum required version will not be increased. The version may be increased
75             for any reason, and there is no promise that patches will be accepted to
76             lower the minimum required perl.
77              
78             =head1 AUTHOR
79              
80             Ricardo SIGNES <cpan@semiotic.systems>
81              
82             =head1 COPYRIGHT AND LICENSE
83              
84             This software is copyright (c) 2024 by Ricardo SIGNES.
85              
86             This is free software; you can redistribute it and/or modify it under
87             the same terms as the Perl 5 programming language system itself.
88              
89             =cut