File Coverage

blib/lib/Slack/BlockKit/Role/HasMentionStyle.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::HasMentionStyle 0.005;
2             # ABSTRACT: a Block Kit element with a bunch of styles
3              
4 4     4   3110 use Moose::Role;
  4         55  
  4         44  
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 * highlight
17             #pod * client_highlight
18             #pod * unlink
19             #pod
20             #pod The author of this library doesn't know what those last three do, but they are
21             #pod documented.
22             #pod
23             #pod =cut
24              
25             with 'Slack::BlockKit::Role::HasStyle' => {
26             styles => [
27             qw( bold italic strike ), # the basic styles (HasBasicStyle) minus code
28             qw( highlight client_highlight unlink ), # mysteries to rjbs
29             ],
30             };
31              
32 4     4   26828 no Moose::Role;
  4         8  
  4         23  
33             1;
34              
35             __END__
36              
37             =pod
38              
39             =encoding UTF-8
40              
41             =head1 NAME
42              
43             Slack::BlockKit::Role::HasMentionStyle - a Block Kit element with a bunch of styles
44              
45             =head1 VERSION
46              
47             version 0.005
48              
49             =head1 OVERVIEW
50              
51             This is a specialization of the role L<Slack::BlockKit::Role::HasBasicStyle>,
52             in which the permitted C<styles> are:
53              
54             =over 4
55              
56             =item *
57              
58             bold
59              
60             =item *
61              
62             code
63              
64             =item *
65              
66             italic
67              
68             =item *
69              
70             strike
71              
72             =item *
73              
74             highlight
75              
76             =item *
77              
78             client_highlight
79              
80             =item *
81              
82             unlink
83              
84             =back
85              
86             The author of this library doesn't know what those last three do, but they are
87             documented.
88              
89             =head1 PERL VERSION
90              
91             This module should work on any version of perl still receiving updates from
92             the Perl 5 Porters. This means it should work on any version of perl
93             released in the last two to three years. (That is, if the most recently
94             released version is v5.40, then this module should work on both v5.40 and
95             v5.38.)
96              
97             Although it may work on older versions of perl, no guarantee is made that the
98             minimum required version will not be increased. The version may be increased
99             for any reason, and there is no promise that patches will be accepted to
100             lower the minimum required perl.
101              
102             =head1 AUTHOR
103              
104             Ricardo SIGNES <cpan@semiotic.systems>
105              
106             =head1 COPYRIGHT AND LICENSE
107              
108             This software is copyright (c) 2024 by Ricardo SIGNES.
109              
110             This is free software; you can redistribute it and/or modify it under
111             the same terms as the Perl 5 programming language system itself.
112              
113             =cut