Markdent::Role::Event - Implements behavior shared by all events
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.
This role provides the following methods:
These all returns booleans indicating whether the event is of the specified type.
This returns a name like "start_blockquote", "end_strong", or "text".
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.
Returns a string representation of the event suitable for debugging output.
See Markdent for bug reporting details.
Dave Rolsky, <autarch@urth.org>
Copyright 2009 Dave Rolsky, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Markdent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Markdent
CPAN shell
perl -MCPAN -e shell install Markdent
For more information on module installation, please visit the detailed CPAN module installation guide.