Updated catalyst.pl
[catagits/Catalyst-Runtime.git] / lib / Catalyst / ActionContainer.pm
CommitLineData
cfd04b0c 1package Catalyst::ActionContainer;
2
3use strict;
4use base qw/Class::Accessor::Fast/;
5
6__PACKAGE__->mk_accessors(qw/part actions/);
7
8use overload (
9
10 # Stringify to path part for tree search
11 q{""} => sub { shift->{part} },
12
13);
14
15=head1 NAME
16
aa6283e4 17Catalyst::ActionContainer - Catalyst Action Container
cfd04b0c 18
19=head1 SYNOPSIS
20
21See L<Catalyst>.
22
23=head1 DESCRIPTION
24
25=head1 METHODS
26
27=over 4
28
79a3189a 29=item get_action
30
31=cut
32
33sub get_action {
bcd1002b 34 my ( $self, $name ) = @_;
79a3189a 35 return $self->actions->{$name} if defined $self->actions->{$name};
36 return;
37}
cfd04b0c 38
39=item actions
40
79a3189a 41=item part
42
cfd04b0c 43=back
44
45=head1 AUTHOR
46
47Matt S. Trout
48
49=head1 COPYRIGHT
50
51This program is free software, you can redistribute it and/or modify it under
52the same terms as Perl itself.
53
54=cut
55
561;