NAME
Gapp::App::Hook - Application callback
DESCRIPTION
A hook object holds callbacks which are executed upon request.
PROVIDED ATTRIBUTES
- action
-
Possible values are
aggregate
andhalt
. AnAggregate
hook will accumlate the return values of all callbacks. Ahalt
hook will stop execution of all callbacks when any callback returns true.- is rw
- isa GappAppHookAction
- default
aggregate
- name
-
The name of the hook.
- closure \&callback
-
A
CodeRef
to be executed after all callbacks.
PROVIDED METHODS
- call @params
-
Executes the associated callbacks, passing in
@params
. - push \&callback, $data
-
Add a callback to the hook. Callbacks will be executed in the order they are pushed on to the stack.
AUTHORS
Jeffrey Ray Hallock <jeffrey.hallock at gmail dot com>
COPYRIGHT & LICENSE
Copyright (c) 2010-2012 Jeffrey Ray Hallock.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 127:
You forgot a '=back' before '=head1'
- Around line 140:
You forgot a '=back' before '=head1'