X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FDispatchType%2FPath.pm;h=7f32b61542b39c738285ee00d1695e772ca41385;hp=bd74c79d6190ecf173687a7069eed41a2030bdfb;hb=34d28dfd33574ce30aca69fb8700b61111d97b92;hpb=27708fc5f90d4794f082348049ac894f58224fad diff --git a/lib/Catalyst/DispatchType/Path.pm b/lib/Catalyst/DispatchType/Path.pm index bd74c79..7f32b61 100644 --- a/lib/Catalyst/DispatchType/Path.pm +++ b/lib/Catalyst/DispatchType/Path.pm @@ -19,11 +19,13 @@ See L. =head2 $self->list($c) +Debug output for Path dispatch points + =cut sub list { my ( $self, $c ) = @_; - my $paths = Text::SimpleTable->new( [ 36, 'Path' ], [ 37, 'Private' ] ); + my $paths = Text::SimpleTable->new( [ 35, 'Path' ], [ 36, 'Private' ] ); for my $path ( sort keys %{ $self->{paths} } ) { my $action = $self->{paths}->{$path}; $path = "/$path" unless $path eq '/'; @@ -35,6 +37,8 @@ sub list { =head2 $self->match( $c, $path ) +Check for paths that match the given path. + =cut sub match { @@ -55,6 +59,8 @@ sub match { =head2 $self->register( $c, $action ) +Call register_path for every path attribute in the given $action. + =cut sub register { @@ -70,6 +76,8 @@ sub register { =head2 $self->register_path($c, $path, $action) +register an action at a given path. + =cut sub register_path {