Dave Rolsky > Markdent-0.24 > Markdent::Role::Event

Download:
Markdent-0.24.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  2
View/Report Bugs
Module Version: 0.24   Source  

NAME ^

Markdent::Role::Event - Implements behavior shared by all events

VERSION ^

version 0.24

DESCRIPTION ^

This role provides shared behavior for all event classes. It is actually somewhat of a hack, as it is a parameterized role that generates methods for each class that consumes it.

METHODS ^

This role provides the following methods:

$event->is_start()

$event->is_end()

$event->is_inline()

These all returns booleans indicating whether the event is of the specified type.

$event->event_name()

This returns a name like "start_blockquote", "end_strong", or "text".

$event->kv_pairs_for_attributes()

This returns a hash representing the data stored in the object's attributes. If an attribute is not required and has not been set, it will not be present in the hash.

$event->debug_dump()

Returns a string representation of the event suitable for debugging output.

BUGS ^

See Markdent for bug reporting details.

AUTHOR ^

Dave Rolsky <autarch@urth.org>

CONTRIBUTOR ^

Jason McIntosh <jmac@appleseed-sc.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2014 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: