| 1 | package Markdent::Handler::Multiplexer; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | our $VERSION = '0.41'; | |
| 8 | |||
| 9 | 1 | ▶ | use Markdent::Types; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 1 | ▶ | use MooseX::StrictConstructor; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | 1 | with 'Markdent::Role::Handler'; | |
| 15 | |||
| 16 | 1 | has _handlers => ( | |
| 17 | is => 'ro', | ||
| 18 | isa => t( 'ArrayRef', of => t('HandlerObject') ), | ||
| 19 | init_arg => 'handlers', | ||
| 20 | required => 1, | ||
| 21 | ); | ||
| 22 | |||
| 23 | 264 | ▶ | sub handle_event { |
|
Subroutine
handle_event: called CC=2 SCAR=6.9
Pod
undocumented
| |||
| 24 | 264 | $_->handle_event( $_[1] ) for @{ $_[0]->_handlers }; | |
| 25 | } | ||
| 26 | |||
| 27 | 1 | __PACKAGE__->meta->make_immutable; | |
| 28 | |||
| 29 | 1 | 1; | |
| 30 | |||
| 31 | # ABSTRACT: Passes events on to multiple handlers | ||
| 32 | |||
| 33 | __END__ | ||