RafaelChefe/toy_robot

View on GitHub
lib/commands/report_command.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

require "commands/base_command"

class ReportCommand < BaseCommand
  # prints the robot's current position to the standard output, in readable format
  def execute
    puts @robot.report
  end
end