| 1 | package Catalyst::Action::RenderView::ErrorHandler::Action; | ||||||||||
| 2 | { | ||||||||||
| 3 | 5 | $Catalyst::Action::RenderView::ErrorHandler::Action::VERSION = '0.100166'; | |||||||||
| 4 | } | ||||||||||
| 5 | #ABSTRACT: A Role for any actions that want to react to errors. | ||||||||||
| 6 | |||||||||||
| 7 | 5 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 5 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 5 | ▶ | use Moose::Role; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | |||||||||||
| 12 | 5 | has 'id' => (is => 'ro', isa => 'Str', required => 1); | |||||||||
| 13 | |||||||||||
| 14 | |||||||||||
| 15 | 5 | has 'ignore_path' => ( | |||||||||
| 16 | is => 'ro', | ||||||||||
| 17 | isa => 'Str', | ||||||||||
| 18 | required => 0, | ||||||||||
| 19 | init_arg => 'ignorePath', | ||||||||||
| 20 | predicate => 'has_ignore_path', | ||||||||||
| 21 | ); | ||||||||||
| 22 | |||||||||||
| 23 | |||||||||||
| 24 | 4 | ▶ | sub ignore { | ||||||||
|
Subroutine
ignore: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 25 | 4 | my ( $self, $path ) = @_; | |||||||||
| 26 | 4 | ▶ | return unless $self->has_ignore_path; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 27 | 1 | my $re = $self->ignore_path; | |||||||||
| 28 | 1 | $re = qr/\Q$re\E/; | |||||||||
| 29 | 1 | return $path =~ m/$re/; | |||||||||
| 30 | } | ||||||||||
| 31 | |||||||||||
| 32 | 5 | requires 'perform'; | |||||||||
| 33 | |||||||||||
| 34 | 5 | 1; | |||||||||
| 35 | |||||||||||
| 36 | __END__ | ||||||||||