File Coverage

blib/lib/Markdent/Event/StartTableCell.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 24 24 100.0


line stmt bran cond sub pod time code
1             package Markdent::Event::StartTableCell;
2              
3 4     4   29 use strict;
  4         9  
  4         133  
4 4     4   22 use warnings;
  4         8  
  4         108  
5 4     4   21 use namespace::autoclean;
  4         9  
  4         31  
6              
7             our $VERSION = '0.39';
8              
9 4     4   349 use Markdent::Types;
  4         10  
  4         29  
10              
11 4     4   95994 use Moose;
  4         11  
  4         49  
12 4     4   27359 use MooseX::StrictConstructor;
  4         8  
  4         41  
13              
14             has alignment => (
15             is => 'ro',
16             isa => t('TableCellAlignment'),
17             required => 1,
18             );
19              
20             has colspan => (
21             is => 'ro',
22             isa => t('PositiveInt'),
23             required => 1,
24             );
25              
26             has is_header_cell => (
27             is => 'ro',
28             isa => t('Bool'),
29             default => 0,
30             );
31              
32             with 'Markdent::Role::Event' => { event_class => __PACKAGE__ };
33              
34             __PACKAGE__->meta->make_immutable;
35              
36             1;
37              
38             # ABSTRACT: An event for the start of a table cell
39              
40             __END__
41              
42             =pod
43              
44             =encoding UTF-8
45              
46             =head1 NAME
47              
48             Markdent::Event::StartTableCell - An event for the start of a table cell
49              
50             =head1 VERSION
51              
52             version 0.39
53              
54             =head1 DESCRIPTION
55              
56             This class represents the start of a table cell.
57              
58             =head1 ATTRIBUTES
59              
60             This class has the following attributes:
61              
62             =head2 alignment
63              
64             The alignment for the cell. This will be one of "left", "right", or "center".
65              
66             =head2 colspan
67              
68             The colspan for the cell. This will be a positive integer.
69              
70             =head2 is_header_cell
71              
72             A boolean indicating whether the cell is a header cell. This will be true for
73             all cells in the table's header, but can also be true for cells in the table's
74             body.
75              
76             =head1 ROLES
77              
78             This class does the L<Markdent::Role::Event> role.
79              
80             =head1 BUGS
81              
82             See L<Markdent> for bug reporting details.
83              
84             Bugs may be submitted at L<https://github.com/houseabsolute/Markdent/issues>.
85              
86             I am also usually active on IRC as 'autarch' on C<irc://irc.perl.org>.
87              
88             =head1 SOURCE
89              
90             The source code repository for Markdent can be found at L<https://github.com/houseabsolute/Markdent>.
91              
92             =head1 AUTHOR
93              
94             Dave Rolsky <autarch@urth.org>
95              
96             =head1 COPYRIGHT AND LICENSE
97              
98             This software is copyright (c) 2021 by Dave Rolsky.
99              
100             This is free software; you can redistribute it and/or modify it under
101             the same terms as the Perl 5 programming language system itself.
102              
103             The full text of the license can be found in the
104             F<LICENSE> file included with this distribution.
105              
106             =cut