Class: Robot::Commands::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/robot/commands/base.rb

Overview

Command Base/Interface

Direct Known Subclasses

Left, Move, NoOp, Place, Report, Right

Class Method Summary collapse

Class Method Details

.callObject

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/robot/commands/base.rb', line 11

def self.call
  raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end

.matches(_command) ⇒ Object

Raises:

  • (NotImplementedError)


7
8
9
# File 'lib/robot/commands/base.rb', line 7

def self.matches(_command)
  raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end