X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FActionContainer.pm;h=4dd45002c6a4a0dde25cfcb223414d60a1244fef;hb=2666dd3ba45edb0fa31508f67d94fe80072f94f6;hp=eb6bb7464d969853716b37ca5a7ba80bcb71df46;hpb=cfd04b0cabf99346090fe4e3312e393364e571ef;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/ActionContainer.pm b/lib/Catalyst/ActionContainer.pm index eb6bb74..4dd4500 100644 --- a/lib/Catalyst/ActionContainer.pm +++ b/lib/Catalyst/ActionContainer.pm @@ -14,7 +14,7 @@ use overload ( =head1 NAME -Catalyst::Action - Catalyst Action +Catalyst::ActionContainer - Catalyst Action Container =head1 SYNOPSIS @@ -24,22 +24,19 @@ See L. =head1 METHODS -=over 4 - -=item part - -=item actions - -=item new +=head2 get_action =cut -sub new { # Dumbass constructor - my ( $class, $attrs ) = @_; - return bless { %{ $attrs || {} } }, $class; +sub get_action { + my ( $self, $name ) = @_; + return $self->actions->{$name} if defined $self->actions->{$name}; + return; } -=back +=head2 actions + +=head2 part =head1 AUTHOR