Johan Lindström > Catalyst-Enzyme > Catalyst::Enzyme::Controller

Download:
Catalyst-Enzyme-0.11.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  7
Open  2
View/Report Bugs
Module Version: 0.1   Source  

NAME ^

Catalyst::Enzyme::Controller - Enzyme Controller Base Class with utility methods

SYNOPSIS ^

See Catalyst::Enzyme

PROPERTIES ^

METHODS ^

run_safe($c, $sub, $fail_action, $fail_message, @rest)

Run the $sub->(@rest) ref inside an eval cage, and return 1.

Or, if $sub dies, set stash->{message} to $fail_message, stash->{error} to $@, log the error, shed a tear, and return 0.

class_to_moniker($class_name)

Return default moniker of $class_name.

Default is to take the last past of the $class_name, and split it on lower/uppercase boundaries.

If one can't be figured out, return the $class_name.

AUTHOR ^

Johan Lindstrom <johanl ÄT cpan.org>

LICENSE ^

This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.

syntax highlighting: