Markdent::Event::EndEmphasis - An event for the end of an emphasis span


Markdent documentation Contained in the Markdent distribution.

Index


Code Index:

NAME

Top

Markdent::Event::EndEmphasis - An event for the end of an emphasis span

VERSION

Top

version 0.17

DESCRIPTION

Top

This class represents the end of an emphasis span.

ATTRIBUTES

Top

This class has the following attributes:

delimiter

The delimiter for the emphasis span.

METHODS

Top

This class has the following methods:

$event->as_text()

Returns the event's delimiter.

ROLES

Top

This class does the Markdent::Role::Event and Markdent::Role::BalancedEvent roles.

BUGS

Top

See Markdent for bug reporting details.

AUTHOR

Top

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE

Top


Markdent documentation Contained in the Markdent distribution.

package Markdent::Event::EndEmphasis;
BEGIN {
  $Markdent::Event::EndEmphasis::VERSION = '0.17';
}

use strict;
use warnings;

use Markdent::Types qw( Str );

use namespace::autoclean;
use Moose;
use MooseX::StrictConstructor;

has delimiter => (
    is       => 'ro',
    isa      => Str,
    required => 1,
);

with 'Markdent::Role::Event';

with 'Markdent::Role::BalancedEvent' => { compare => [ 'delimiter' ] };

with 'Markdent::Role::EventAsText';

sub as_text { $_[0]->delimiter() }

__PACKAGE__->meta()->make_immutable();

1;

# ABSTRACT: An event for the end of an emphasis span




__END__