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=99ce5611b088e5967db594e77e4190752f4c4588;hp=f8476eb617a5a03b12d300a1417e94e2fe05721d;hb=3c0186f29e8864c86aca75f03f8d8ac1afd5507d;hpb=059c085bfcead450e70ace9ef193aa99ac2ab37d diff --git a/lib/Catalyst/DispatchType.pm b/lib/Catalyst/DispatchType.pm index f8476eb..99ce561 100644 --- a/lib/Catalyst/DispatchType.pm +++ b/lib/Catalyst/DispatchType.pm @@ -1,7 +1,6 @@ package Catalyst::DispatchType; -use strict; -use base 'Class::Accessor::Fast'; +use Moose; =head1 NAME @@ -13,7 +12,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 @@ -38,7 +37,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.