Class: Jambots::Renderers::MinimalRenderer

Inherits:
Object
  • Object
show all
Defined in:
lib/jambots/renderers/minimal_renderer.rb

Instance Method Summary collapse

Instance Method Details

#render(conversation, &block) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/jambots/renderers/minimal_renderer.rb', line 5

def render(conversation, &block)
  message = block.call
  puts message[:content]
rescue Jambots::ChatClientError => e
  warn "ERROR: #{e.message}"
  exit(1)
end