Class: LocoBot::CLI::Command::Left
- 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
Instance Method Summary collapse
-
#execute ⇒ Boolean
Executes the command.
Methods inherited from Base
Constructor Details
This class inherits a constructor from LocoBot::CLI::Command::Base
Instance Method Details
#execute ⇒ Boolean
Executes the command.
8 9 10 |
# File 'lib/loco_bot/cli/command/left.rb', line 8 def execute robot.turn_left end |