X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FActionContainer.pm;h=4dd45002c6a4a0dde25cfcb223414d60a1244fef;hp=f3ff514023f78502152fdf4a23007369cb823a51;hb=b5ecfcf07b8ffe7e9984f0279c8781ce51c6ac6a;hpb=aa6283e424c072151127157dbfb971dcaa589f4b diff --git a/lib/Catalyst/ActionContainer.pm b/lib/Catalyst/ActionContainer.pm index f3ff514..4dd4500 100644 --- a/lib/Catalyst/ActionContainer.pm +++ b/lib/Catalyst/ActionContainer.pm @@ -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