| 1 | package Markdent::Role::Handler; | ||
| 2 | |||
| 3 | 35 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 35 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 35 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 35 | our $VERSION = '0.39'; | |
| 8 | |||
| 9 | 35 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 35 | requires 'handle_event'; | |
| 12 | |||
| 13 | 35 | 1; | |
| 14 | |||
| 15 | # ABSTRACT: A required role for all handlers | ||
| 16 | |||
| 17 | __END__ | ||
| 18 | |||
| 19 | =pod | ||
| 20 | |||
| 21 | =encoding UTF-8 | ||
| 22 | |||
| 23 | =head1 NAME | ||
| 24 | |||
| 25 | Markdent::Role::Handler - A required role for all handlers | ||
| 26 | |||
| 27 | =head1 VERSION | ||
| 28 | |||
| 29 | version 0.39 | ||
| 30 | |||
| 31 | =head1 DESCRIPTION | ||
| 32 | |||
| 33 | This role implements an interface shared by all handlers. | ||
| 34 | |||
| 35 | =head1 REQUIRED METHODS | ||
| 36 | |||
| 37 | =over 4 | ||
| 38 | |||
| 39 | =item * $handler->handle_event($event) | ||
| 40 | |||
| 41 | This method will always be called with a single object which does the | ||
| 42 | L<Markdent::Role::Event> role. | ||
| 43 | |||
| 44 | =back | ||
| 45 | |||
| 46 | =head1 BUGS | ||
| 47 | |||
| 48 | See L<Markdent> for bug reporting details. | ||
| 49 | |||
| 50 | Bugs may be submitted at L<https://github.com/houseabsolute/Markdent/issues>. | ||
| 51 | |||
| 52 | I am also usually active on IRC as 'autarch' on C<irc://irc.perl.org>. | ||
| 53 | |||
| 54 | =head1 SOURCE | ||
| 55 | |||
| 56 | The source code repository for Markdent can be found at L<https://github.com/houseabsolute/Markdent>. | ||
| 57 | |||
| 58 | =head1 AUTHOR | ||
| 59 | |||
| 60 | Dave Rolsky <autarch@urth.org> | ||
| 61 | |||
| 62 | =head1 COPYRIGHT AND LICENSE | ||
| 63 | |||
| 64 | This software is copyright (c) 2021 by Dave Rolsky. | ||
| 65 | |||
| 66 | This is free software; you can redistribute it and/or modify it under | ||
| 67 | the same terms as the Perl 5 programming language system itself. | ||
| 68 | |||
| 69 | The full text of the license can be found in the | ||
| 70 | F<LICENSE> file included with this distribution. | ||
| 71 | |||
| 72 | =cut | ||