Path::Dispatcher::Rule::Eq - predicate is a string equality


Path-Dispatcher documentation  | view source Contained in the Path-Dispatcher distribution.

Index


NAME

Top

Path::Dispatcher::Rule::Eq - predicate is a string equality

SYNOPSIS

Top

    my $rule = Path::Dispatcher::Rule::Eq->new(
        string => 'comment',
        block  => sub { display_comment(shift->pos(1)) },
    );

DESCRIPTION

Top

Rules of this class simply check whether the string is equal to the path.

ATTRIBUTES

Top

string


Path-Dispatcher documentation  | view source Contained in the Path-Dispatcher distribution.