| 1 | package Markdent::Event::StartTableCell; | ||
| 2 | |||
| 3 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 4 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 4 | our $VERSION = '0.39'; | |
| 8 | |||
| 9 | 4 | ▶ | use Markdent::Types; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 4 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 4 | ▶ | use MooseX::StrictConstructor; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | 4 | has alignment => ( | |
| 15 | is => 'ro', | ||
| 16 | isa => t('TableCellAlignment'), | ||
| 17 | required => 1, | ||
| 18 | ); | ||
| 19 | |||
| 20 | 4 | has colspan => ( | |
| 21 | is => 'ro', | ||
| 22 | isa => t('PositiveInt'), | ||
| 23 | required => 1, | ||
| 24 | ); | ||
| 25 | |||
| 26 | 4 | has is_header_cell => ( | |
| 27 | is => 'ro', | ||
| 28 | isa => t('Bool'), | ||
| 29 | default => 0, | ||
| 30 | ); | ||
| 31 | |||
| 32 | 4 | with 'Markdent::Role::Event' => { event_class => __PACKAGE__ }; | |
| 33 | |||
| 34 | 4 | __PACKAGE__->meta->make_immutable; | |
| 35 | |||
| 36 | 4 | 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 | ||