1 package Catalyst::Action;
4 use base qw/Class::Accessor::Fast/;
6 __PACKAGE__->mk_accessors(qw/class namespace reverse attributes name code/);
10 # Stringify to reverse for debug output etc.
11 q{""} => sub { shift->{reverse} },
13 # Codulate to encapsulated action coderef
14 '&{}' => sub { shift->{code} },
16 # Make general $stuff still work
23 Catalyst::Action - Catalyst Action
43 sub execute { # Execute ourselves against a context
44 my ( $self, $c ) = @_;
45 local $c->namespace = $self->namespace;
46 return $c->execute( $self->class, $self );
61 This program is free software, you can redistribute it and/or modify it under
62 the same terms as Perl itself.