package Markdent::Event::StartTableCell;
{
$Markdent::Event::StartTableCell::VERSION = '0.23';
}
BEGIN {
$Markdent::Event::StartTableCell::AUTHORITY = 'cpan:DROLSKY';
}
use strict;
use warnings;
use namespace::autoclean;
use Markdent::Types qw( TableCellAlignment PosInt Bool );
use Moose;
use MooseX::StrictConstructor;
has alignment => (
is => 'ro',
isa => TableCellAlignment,
required => 1,
);
has colspan => (
is => 'ro',
isa => PosInt,
required => 1,
);
has is_header_cell => (
is => 'ro',
isa => Bool,
default => 0,
);
with 'Markdent::Role::Event';
__PACKAGE__->meta()->make_immutable();
1;
# ABSTRACT: An event for the start of a table cell
__END__
=pod
=head1 NAME
Markdent::Event::StartTableCell - An event for the start of a table cell
=head1 VERSION
version 0.23
=head1 DESCRIPTION
This class represents the start of a table cell.
=head1 ATTRIBUTES
This class has the following attributes:
=head2 alignment
The alignment for the cell. This will be one of "left", "right", or "center".
=head2 colspan
The colspan for the cell. This will be a positive integer.
=head2 is_header_cell
A boolean indicating whether the cell is a header cell. This will be true for
all cells in the table's header, but can also be true for cells in the table's
body.
=head1 ROLES
This class does the L<Markdent::Role::Event> role.
=head1 BUGS
See L<Markdent> for bug reporting details.
=head1 AUTHOR
Dave Rolsky <autarch@urth.org>
=head1 CONTRIBUTOR
Jason McIntosh <jmac@appleseed-sc.com>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Dave Rolsky.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut