Marcus Ramberg > Catalyst-Runtime-5.7010 > Catalyst::ActionContainer

Download:
Catalyst-Runtime-5.7010.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  5
Open  7
Stalled  4
View Bugs
Report a bug
Source   Latest Release: Catalyst-Runtime-5.80014_01

NAME ^

Catalyst::ActionContainer - Catalyst Action Container

SYNOPSIS ^

See Catalyst.

DESCRIPTION ^

This is a container for actions. The dispatcher sets up a tree of these to represent the various dispatch points in your application.

METHODS ^

new(\%data | $part)

Can be called with { part => $part, actions => \%actions } for full construction or with just a part, which will result in an empty actions hashref to be populated via add_action later

get_action($name)

Returns an action from this container based on the action name, or undef

add_action($action, [ $name ])

Adds an action, optionally providing a name to override $action->name

actions

Accessor to the actions hashref, containing all actions in this container.

part

Accessor to the path part this container resolves to. Also what the container stringifies to.

AUTHOR ^

Matt S. Trout

COPYRIGHT ^

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.