Class: ComponentHost::SupervisorObservers::RecordErrors

Inherits:
Object
  • Object
show all
Includes:
Actor::Supervisor::Observer
Defined in:
lib/component_host/supervisor_observers/record_errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#record_error_procObject



18
19
20
# File 'lib/component_host/supervisor_observers/record_errors.rb', line 18

def record_error_proc
  @record_error_proc ||= proc { }
end

Instance Method Details

#call(error) ⇒ Object



14
15
16
# File 'lib/component_host/supervisor_observers/record_errors.rb', line 14

def call error
  record_error_proc.(error)
end