Class: RobotInterface::Report

Inherits:
Command
  • Object
show all
Defined in:
lib/rubbot_cli.rb

Constant Summary

Constants inherited from Command

Command::NoArgumentsError

Instance Method Summary collapse

Methods inherited from Command

#initialize

Constructor Details

This class inherits a constructor from RobotInterface::Command

Instance Method Details

#execute(robot, options = {}) ⇒ Object



49
50
51
52
# File 'lib/rubbot_cli.rb', line 49

def execute(robot, options = {})
  output = options.fetch(:output)
  output << robot.report + "\n"
end