Method: Interactify::Wiring#format_error

Defined in:
lib/interactify/wiring.rb

#format_error(missing, interactor, organizer, formatted_errors) ⇒ Object



51
52
53
54
55
56
57
# File 'lib/interactify/wiring.rb', line 51

def format_error(missing, interactor, organizer, formatted_errors)
  formatted_errors << <<~ERROR
    Missing keys: #{missing.to_a.map(&:to_sym).map(&:inspect).join(', ')}
     expected in: #{interactor.klass}
       called by: #{organizer.klass}
  ERROR
end