NAME
Gapp::Action::Registry - Registry of Gapp::Action objects
OBJECT HIERARCHY
PROVIDED METHODS
- action $name
-
Returns the Gapp::Action in the regisry with the given name.
- actions
-
Returns a list all of the Gapp::Action objects in the registry.
- action_list
-
Returns a list of all the action names in the registry.
- add_action $action|\%opts
-
Add an action to the registry. Takes either a Gapp::Action object or a
HashRef
. If aHashRef
is supplied, the values will be used to create a new Gapp::Action object. - has_action $name
-
Returns
true
if an action with the given$name
exists in the registry,false
otherwise. - perform $name, @args
-
Calls
perform
on the action with the given name, passing inargs
as parameters.
AUTHORS
Jeffrey Ray Hallock <jeffrey.hallock at gmail dot com>
COPYRIGHT & LICENSE
Copyright (c) 2011-2012 Jeffrey Ray Hallock.
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.