Class: LocoBot::CLI::Command::Left

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

Overview

Upon execution, calls #turn_left 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/left.rb', line 8

def execute
  robot.turn_left
end