Module: Roby::Log::TaskHooks
- Included in:
- Task
- Defined in:
- lib/roby/log/hooks.rb
Constant Summary collapse
- HOOKS =
%w{added_task_child removed_task_child}
Instance Method Summary collapse
- #added_child_object(child, relations, info) ⇒ Object
- #removed_child_object(child, relations) ⇒ Object
Instance Method Details
#added_child_object(child, relations, info) ⇒ Object
23 24 25 26 |
# File 'lib/roby/log/hooks.rb', line 23 def added_child_object(child, relations, info) super if defined? super Roby::Log.log(:added_task_child) { [self, relations, child, info] } end |
#removed_child_object(child, relations) ⇒ Object
28 29 30 31 |
# File 'lib/roby/log/hooks.rb', line 28 def removed_child_object(child, relations) super if defined? super Roby::Log.log(:removed_task_child) { [self, relations, child] } end |