Markdent::Event::StartLink - An event for the start of a link


Markdent documentation Contained in the Markdent distribution.

Index


Code Index:

NAME

Top

Markdent::Event::StartLink - An event for the start of a link

VERSION

Top

version 0.17

DESCRIPTION

Top

This class represents the start of a link.

ATTRIBUTES

Top

This class has the following attributes:

uri

The uri for the link.

title

The link title. This is optional.

id

The link's id. This is optional.

is_implicit_id

This will be true if the link's id was not specified explicitly in the Markdown text.

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::StartLink;
BEGIN {
  $Markdent::Event::StartLink::VERSION = '0.17';
}

use strict;
use warnings;

use Markdent::Types qw( Str Bool );

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

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

has title => (
    is        => 'ro',
    isa       => Str,
    predicate => 'has_title',
);

has id => (
    is        => 'ro',
    isa       => Str,
    predicate => 'has_id',
);

has is_implicit_id => (
    is      => 'ro',
    isa     => 'Bool',
    default => 0,
);

with 'Markdent::Role::Event';

with 'Markdent::Role::BalancedEvent';

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

1;

# ABSTRACT: An event for the start of a link




__END__