rafaelgonzalez/loco_bot

View on GitHub
lib/loco_bot/cli/command/move.rb

Summary

Maintainability
A
0 mins
Test Coverage
module LocoBot
  class CLI
    module Command
      # Upon execution, calls #move on the robot attribute.
      class Move < Base
        # Executes the command.
        # @return [Boolean] true if the operation succeeded, false otherwise.
        def execute
          robot.move
        end
      end
    end
  end
end