Class: LocoBot::CLI::Command::Right

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

Overview

Upon execution, calls #turn_right 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.


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

def execute
  robot.turn_right
end