Module: Synapse::Command::CommandHandler

Included in:
MappingCommandHandler
Defined in:
lib/synapse/command/command_handler.rb

Overview

Mixin for an object capable of handling commands

Consider using the command handler mixin that uses the mapping DSL.

Instance Method Summary collapse

Instance Method Details

#handle(command, current_unit) ⇒ Object

Handles the given command

Parameters:

Returns:

  • (Object)

    The result of handling the given command

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/synapse/command/command_handler.rb', line 12

def handle(command, current_unit)
  raise NotImplementedError
end