Вячеслав Тихановский > Routes-Tiny-0.14 > Routes::Tiny::Match

Download:
Routes-Tiny-0.14.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source  

NAME ^

Routes::Tiny::Match - Matched object

SYNOPSIS ^

    my $match = $r->match('/foo/bar');

    my $name = $match->name;
    my $params_hashref = $match->params;
    my $parent_match = $match->parent

DESCRIPTION ^

Routes::Tiny::Match is a Value Object that holds params of a matched route.

ATTRIBUTES ^

name

    my $name = $match->name;

Get original route's pattern name.

arguments

    my $arguments = $match->arguments;

Get route's pattern arguments.

captures

    my $hashref = $match->captures;

Get params.

params

An alias to captures.

parent

Reference to parent match in case of matching subroutes.

METHODS ^

new

    my $match = Routes::Tiny::Match->new;

Create new instance of Routes::Tiny::Match.

syntax highlighting: