Markdent::Event::EndCode - An event for the end of a code span


Markdent documentation Contained in the Markdent distribution.

Index


Code Index:

NAME

Top

Markdent::Event::EndCode - An event for the end of a code span

VERSION

Top

version 0.17

DESCRIPTION

Top

This class represents the end of a code span.

ATTRIBUTES

Top

This class has the following attributes:

delimiter

The delimiter for the code 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::EndCode;
BEGIN {
  $Markdent::Event::EndCode::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 a code span




__END__