X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FDispatchType.pm;h=dc12b5710d033dbbd27420c2723e633be48ed721;hp=4adba13e743ff51de9dbd20253461ba5e731c77c;hb=74dafab798a163c251e09de7fcc21a267d1678a6;hpb=b96f127f47d826a5bb8ebebc80f1b46ab3497e39 diff --git a/lib/Catalyst/DispatchType.pm b/lib/Catalyst/DispatchType.pm index 4adba13..dc12b57 100644 --- a/lib/Catalyst/DispatchType.pm +++ b/lib/Catalyst/DispatchType.pm @@ -1,14 +1,52 @@ package Catalyst::DispatchType; use strict; +use base 'Class::Accessor::Fast'; -sub new { # Dumbass constructor - my ( $class, $attrs ) = @_; - return bless { %{ $attrs || {} } }, $class; -} +=head1 NAME -sub prepare_action { die "Abstract method!"; } +Catalyst::DispatchType - DispatchType Base Class -sub register_action { return; } +=head1 SYNOPSIS + +See L. + +=head1 DESCRIPTION + +=head1 METHODS + +=over 4 + +=item $self->list($c) + +=cut + +sub list { } + +=item $self->match( $c, $path ) + +=cut + +sub match { die "Abstract method!" } + +=item $self->register( $c, $action ) + +=cut + +sub register { } + +=back + +=head1 AUTHOR + +Matt S Trout +Sebastian Riedel, C + +=head1 COPYRIGHT + +This program is free software, you can redistribute it and/or modify it under +the same terms as Perl itself. + +=cut 1;