| 1 | package Gears::Router::Location; | ||
| 2 | 4 | $Gears::Router::Location::VERSION = '0.105'; | |
| 3 | 4 | ▶ | use v5.40; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 4 | ▶ | use Mooish::Base -standard; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 4 | ▶ | use Gears::Router::Pattern; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 4 | has param 'pattern' => ( | |
| 9 | isa => Str, | ||
| 10 | ); | ||
| 11 | |||
| 12 | 4 | has field 'pattern_obj' => ( | |
| 13 | isa => InstanceOf ['Gears::Router::Pattern'], | ||
| 14 | lazy => 1, | ||
| 15 | ); | ||
| 16 | |||
| 17 | 4 | with qw( | |
| 18 | Gears::Router::Proto | ||
| 19 | ); | ||
| 20 | |||
| 21 | 291 | ▶ | sub is_bridge ($self) |
|
Subroutine
is_bridge: called CC=1 SCAR=0.0
Pod
documented
| |||
| 22 | { | ||
| 23 | 291 | return $self->locations->@* > 0; | |
| 24 | } | ||
| 25 | |||
| 26 | 456 | ▶ | sub compare ($self, $path) |
|
Subroutine
compare: called CC=1 SCAR=0.0
Pod
documented
| |||
| 27 | { | ||
| 28 | 456 | return $self->pattern_obj->compare($path); | |
| 29 | } | ||
| 30 | |||
| 31 | 20 | ▶ | sub build ($self, @more_args) |
|
Subroutine
build: called CC=1 SCAR=0.0
Pod
documented
| |||
| 32 | { | ||
| 33 | 20 | return $self->pattern_obj->build(@more_args); | |
| 34 | } | ||
| 35 | |||
| 36 | # must be reimplemented | ||
| 37 | 0 | ▶ | sub _build_pattern_obj ($self) |
|
Subroutine
_build_pattern_obj: not called CC=1 SCAR=6.9
| |||
| 38 | { | ||
| 39 | 0 | ...; | |
| 40 | } | ||
| 41 | |||
| 42 | __END__ | ||