Class: LocoBot::CLI::Command::Move

Inherits:
Base
  • Object
show all
Defined in:
lib/loco_bot/cli/command/move.rb

Overview

Upon execution, calls #move on the robot attribute.

Instance Attribute Summary

Attributes inherited from Base

#robot, #table

Instance Method Summary collapse

Methods inherited from Base

#initialize, label

Constructor Details

This class inherits a constructor from LocoBot::CLI::Command::Base

Instance Method Details

#executeBoolean

Executes the command.

Returns:

  • (Boolean)

    true if the operation succeeded, false otherwise.


8
9
10
# File 'lib/loco_bot/cli/command/move.rb', line 8

def execute
  robot.move
end