| 1 | package MooX::Role::Pluggable::Constants; | ||
| 2 | 2 | $MooX::Role::Pluggable::Constants::VERSION = '1.002002'; | |
| 3 | 2 | ▶ | use strictures 2; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | sub EAT_NONE () { 1 } | ||
| 6 | sub EAT_CLIENT () { 2 } | ||
| 7 | sub EAT_PLUGIN () { 3 } | ||
| 8 | sub EAT_ALL () { 4 } | ||
| 9 | |||
| 10 | 2 | ▶ | use parent 'Exporter'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 2 | our @EXPORT = qw/ | |
| 13 | EAT_NONE | ||
| 14 | EAT_CLIENT | ||
| 15 | EAT_PLUGIN | ||
| 16 | EAT_ALL | ||
| 17 | /; | ||
| 18 | |||
| 19 | |||
| 20 | 2 | 1; | |
| 21 | |||
| 22 | =pod | ||
| 23 | |||
| 24 | =begin Pod::Coverage | ||
| 25 | |||
| 26 | EAT.+ | ||
| 27 | |||
| 28 | =end Pod::Coverage | ||
| 29 | |||
| 30 | =head1 NAME | ||
| 31 | |||
| 32 | MooX::Role::Pluggable::Constants - MooX::Role::Pluggable EAT values | ||
| 33 | |||
| 34 | =head1 SYNOPSIS | ||
| 35 | |||
| 36 | ## Import EAT_NONE, EAT_CLIENT, EAT_PLUGIN, EAT_ALL : | ||
| 37 | use MooX::Role::Pluggable::Constants; | ||
| 38 | |||
| 39 | =head1 DESCRIPTION | ||
| 40 | |||
| 41 | Exports constants used by L<MooX::Role::Pluggable/"_pluggable_process">: | ||
| 42 | |||
| 43 | EAT_NONE => 1 | ||
| 44 | EAT_CLIENT => 2 | ||
| 45 | EAT_PLUGIN => 3 | ||
| 46 | EAT_ALL => 4 | ||
| 47 | |||
| 48 | These are used by plugins to control the lifetime of a plugin-processed | ||
| 49 | event. See L<MooX::Role::Pluggable/"_pluggable_process"> for details. | ||
| 50 | |||
| 51 | =head1 AUTHOR | ||
| 52 | |||
| 53 | Jon Portnoy <avenj@cobaltirc.org>, borrowing from | ||
| 54 | L<Object::Pluggable::Constants> | ||
| 55 | |||
| 56 | =cut | ||