Class: Huck::Handlers::EchoHandler
- Inherits:
-
Huck::Handler
- Object
- Huck::Handler
- Huck::Handlers::EchoHandler
- 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
Instance Method Summary collapse
-
#handle(msg) ⇒ Object
Handles a message by printing it.
Methods inherited from Huck::Handler
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 |