| 1 | package Cron::Toolkit::Pattern::List; | ||||||||||
| 2 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | ▶ | use parent 'Cron::Toolkit::Pattern'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 229 | ▶ | sub type { | ||||||||
|
Subroutine
type: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 7 | 229 | return 'list'; | |||||||||
| 8 | } | ||||||||||
| 9 | |||||||||||
| 10 | 134 | ▶ | sub match { | ||||||||
|
Subroutine
match: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 11 | 134 | my ($self, $value, $tm) = @_; | |||||||||
| 12 | 134 | ▶ | return scalar (grep { $_->match($value, $tm) } @{ $self->{children} }) ? 1 : 0; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 13 | } | ||||||||||
| 14 | |||||||||||
| 15 | 9 | ▶ | sub to_english { | ||||||||
|
Subroutine
to_english: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 16 | 9 | my ($self) = @_; | |||||||||
| 17 | 9 | my @items = map { $_->to_english } @{ $self->{children} }; | |||||||||
| 18 | 9 | return join(', ', @items); | |||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | 2 | 1; | |||||||||