Dave Rolsky > Markdent-0.22 > Markdent::Role::BalancedEvent

Download:
Markdent-0.22.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  2
View/Report Bugs
Module Version: 0.22   Source   Latest Release: Markdent-0.24

NAME ^

Markdent::Role::BalancedEvent - A parameterized role for events which can check if they match balance another event

VERSION ^

version 0.22

DESCRIPTION ^

This role provides behavior for start and end events which can be checked for a balancing event. This includes things like strong, emphasis, and code start/end events.

ROLE PARAMETERS ^

This role accepts the following parameters:

METHODS ^

This role provides the following methods:

$event->balances_event($event2)

Given an event, this returns true if two events balance each other. This is done by comparing types (StartCode matches EndCode), as well as the attributes provided in the compare parameter.

BUGS ^

See Markdent for bug reporting details.

AUTHOR ^

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 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.

syntax highlighting: