Shawn M Moore > Path-Dispatcher > Path::Dispatcher::Rule::Enum

Download:
Path-Dispatcher-1.05.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  2
Open  0
View/Report Bugs
Source  

NAME ^

Path::Dispatcher::Rule::Enum - one of a list of strings must match

SYNOPSIS ^

    my $rule = Path::Dispatcher::Rule::Enum->new(
        enum  => [qw(perl ruby python php)],
        block => sub { warn "I love " . shift->pos(1) },
    );

DESCRIPTION ^

Rules of this class check whether the path matches any of its "enum" strings.

ATTRIBUTES ^

enum

case_sensitive

syntax highlighting: