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=d763eb6986c741c5a29288c4034329e3183aaa65;hp=99ce5611b088e5967db594e77e4190752f4c4588;hb=4090e3bb3fea1a73ac369250e31584d61428b808;hpb=3c0186f29e8864c86aca75f03f8d8ac1afd5507d diff --git a/lib/Catalyst/DispatchType.pm b/lib/Catalyst/DispatchType.pm index 99ce561..d763eb6 100644 --- a/lib/Catalyst/DispatchType.pm +++ b/lib/Catalyst/DispatchType.pm @@ -1,6 +1,7 @@ package Catalyst::DispatchType; -use Moose; +use Moose; # using it to add Moose::Object to @ISA ... +no Moose; =head1 NAME @@ -12,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 @@ -37,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. @@ -69,4 +70,6 @@ the same terms as Perl itself. =cut +__PACKAGE__->meta->make_immutable; + 1;