| 1 | package Markdent::Handler::CaptureEvents; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 2 | our $VERSION = '0.41'; | |
| 8 | |||
| 9 | 2 | ▶ | use Markdent::CapturedEvents; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 2 | ▶ | use Specio::Declare; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 2 | ▶ | use MooseX::StrictConstructor; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 2 | with 'Markdent::Role::Handler'; | |
| 16 | |||
| 17 | has captured_events => ( | ||
| 18 | is => 'ro', | ||
| 19 | isa => object_isa_type('Markdent::CapturedEvents'), | ||
| 20 | init_arg => undef, | ||
| 21 | 1 | ▶ | default => sub { Markdent::CapturedEvents->new }, |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 22 | 2 | ); | |
| 23 | |||
| 24 | 264 | ▶ | sub handle_event { |
|
Subroutine
handle_event: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 25 | 264 | $_[0]->captured_events->capture_events( $_[1] ); | |
| 26 | } | ||
| 27 | |||
| 28 | 2 | __PACKAGE__->meta->make_immutable; | |
| 29 | |||
| 30 | 2 | 1; | |
| 31 | |||
| 32 | # ABSTRACT: Captures events for replaying later | ||
| 33 | |||
| 34 | __END__ | ||