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