line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Path::Router::Route::Match; |
2
|
|
|
|
|
|
|
BEGIN { |
3
|
15
|
|
|
15
|
|
664
|
$Path::Router::Route::Match::AUTHORITY = 'cpan:STEVAN'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
$Path::Router::Route::Match::VERSION = '0.14_01'; |
6
|
15
|
|
|
15
|
|
66
|
use Types::Standard 1.000005 qw(Str HashRef InstanceOf); |
|
15
|
|
|
|
|
296
|
|
|
15
|
|
|
|
|
102
|
|
7
|
|
|
|
|
|
|
|
8
|
15
|
|
|
15
|
|
8487
|
use Moo 2.000001; |
|
15
|
|
|
|
|
226
|
|
|
15
|
|
|
|
|
113
|
|
9
|
15
|
|
|
15
|
|
3735
|
use namespace::clean 0.23; |
|
15
|
|
|
|
|
303
|
|
|
15
|
|
|
|
|
88
|
|
10
|
|
|
|
|
|
|
# ABSTRACT: The result of a Path::Router match |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
has 'path' => (is => 'ro', isa => Str, required => 1); |
14
|
|
|
|
|
|
|
has 'mapping' => (is => 'ro', isa => HashRef, required => 1); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
has 'route' => ( |
17
|
|
|
|
|
|
|
is => 'ro', |
18
|
|
|
|
|
|
|
isa => InstanceOf['Path::Router::Route'], |
19
|
|
|
|
|
|
|
required => 1, |
20
|
|
|
|
|
|
|
handles => [qw[target]] |
21
|
|
|
|
|
|
|
); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=pod |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=encoding UTF-8 |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 NAME |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
Path::Router::Route::Match - The result of a Path::Router match |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 VERSION |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
version 0.14_01 |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 DESCRIPTION |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
This is the object returned from calling C<match> on a L<Path::Router> |
42
|
|
|
|
|
|
|
instance. It contains all the information you would need to do any |
43
|
|
|
|
|
|
|
dispatching nessecary. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 METHODS |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=over 4 |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=item B<new> |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=item B<path> |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
This is the path that was matched. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=item B<mapping> |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
This is the mapping of your router part names to the actual parts of |
58
|
|
|
|
|
|
|
the path. If your route had no "variables", then this will be an empty |
59
|
|
|
|
|
|
|
HASH ref. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=item B<route> |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
This is the L<Path::Router::Route> instance that was matched. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=item B<target> |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
This method simply delegates to the C<target> method of the C<route> |
68
|
|
|
|
|
|
|
that was matched. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=item B<meta> |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=back |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 BUGS |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
All complex software has bugs lurking in it, and this module is no |
77
|
|
|
|
|
|
|
exception. If you find a bug please either email me, or add the bug |
78
|
|
|
|
|
|
|
to cpan-RT. |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=head1 AUTHOR |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
Stevan Little E<lt>stevan@cpan.orgE<gt> |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Copyright 2008-2011 Infinity Interactive, Inc. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
L<http://www.iinteractive.com> |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
91
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head1 AUTHOR |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
Stevan Little <stevan@cpan.org> |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
This software is copyright (c) 2015 by Infinity Interactive. |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
102
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=cut |