Method: Roby::Application#add_lifecyle_hook
- Defined in:
- lib/roby/app.rb
#add_lifecyle_hook(hook_set, block, **options) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Registers a lifecycle hook in the provided list of hooks
3273 3274 3275 3276 |
# File 'lib/roby/app.rb', line 3273 def add_lifecyle_hook(hook_set, block, **) hook_set << (hook = LifecycleHook.new(block, **)) Roby.disposable { hook_set.delete(hook) } end |