Class: Huck::Handlers::EchoHandler

Inherits:
Huck::Handler show all
Defined in:
lib/huck/handlers/echo.rb

Overview

The most basic handler to echo messages to stdout

Instance Attribute Summary

Attributes inherited from Huck::Handler

#config

Instance Method Summary collapse

Methods inherited from Huck::Handler

factory

Instance Method Details

#handle(msg) ⇒ Object

Handles a message by printing it

Parameters:

msg

The message to process



14
15
16
# File 'lib/huck/handlers/echo.rb', line 14

def handle msg
  puts msg
end