Method: ActionManager#register_action
- Defined in:
- lib/ActionManager.rb
#register_action(aname, method, threaded = nil) ⇒ Object
Registers a new action in the manager. An action is defined by:
aname
name of the action, it will identify the action method
it’s invoked with call. It should be a Proc or Method object threaded
execute the action in a new thread
84 85 86 87 88 89 90 91 |
# File 'lib/ActionManager.rb', line 84 def register_action(aname, method, threaded=nil) threaded ||= @threaded @actions[aname]={ :method => method, :threaded => threaded } end |