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=f8df3911e15c8a885a721a7f0958118d21823c5b;hp=4adba13e743ff51de9dbd20253461ba5e731c77c;hb=2633d7dc3bb9c0cf7bf3e7cf936d6411fe3ba5aa;hpb=78d760bb64c2142042834b11911b728259e3005d diff --git a/lib/Catalyst/DispatchType.pm b/lib/Catalyst/DispatchType.pm index 4adba13..f8df391 100644 --- a/lib/Catalyst/DispatchType.pm +++ b/lib/Catalyst/DispatchType.pm @@ -1,14 +1,46 @@ 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->match( $c, $path ) + +=cut + +sub match { die "Abstract method!" } + +=item $self->register( $c, $action ) + +=cut + +sub register { return } + +=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;