X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FDispatchType.pm;h=28ddbc54c66c2024e0a8724ff3a3eda8ad5600f1;hb=3295c7dbc672a0d1c03f657a2a37f12f322bbece;hp=b368473adcdb0107c1f7550e7c2c3e5b90a027a5;hpb=e5ecd5bc38bac3e2fcfaf643ea2a4c6ab46d7e57;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/DispatchType.pm b/lib/Catalyst/DispatchType.pm index b368473..28ddbc5 100644 --- a/lib/Catalyst/DispatchType.pm +++ b/lib/Catalyst/DispatchType.pm @@ -1,8 +1,7 @@ package Catalyst::DispatchType; -use Moose; -#use strict; -#use base 'Class::Accessor::Fast'; +use Moose; # using it to add Moose::Object to @ISA ... +no Moose; =head1 NAME @@ -14,7 +13,7 @@ See L. =head1 DESCRIPTION -This is an abstract base class for Dispatch Types. +This is an abstract base class for Dispatch Types. =head1 METHODS @@ -39,7 +38,7 @@ sub match { die "Abstract method!" } =head2 $self->register( $c, $action ) abstract method, to be implemented by dispatchtypes. Takes a -context object and a L object. +context object and a L object. Should return true if it registers something, or false otherwise. @@ -59,10 +58,18 @@ arrayref, or undef if unable to do so. sub uri_for_action { } -=head1 AUTHOR +=head2 $self->expand_action -Matt S Trout -Sebastian Riedel, C +Default fallback, returns nothing. See L for more info +about expand_action. + +=cut + +sub expand_action { } + +=head1 AUTHORS + +Catalyst Contributors, see Catalyst.pm =head1 COPYRIGHT