File Coverage

blib/lib/Markdent/Role/Handler.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package Markdent::Role::Handler;
2              
3 35     35   25162 use strict;
  35         88  
  35         1241  
4 35     35   206 use warnings;
  35         87  
  35         1068  
5 35     35   224 use namespace::autoclean;
  35         78  
  35         259  
6              
7             our $VERSION = '0.40';
8              
9 35     35   2907 use Moose::Role;
  35         90  
  35         387  
10              
11             requires 'handle_event';
12              
13             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.40
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