Class: RightCommand

Inherits:
Command show all
Defined in:
lib/another_toy_robot/right_command.rb

Instance Attribute Summary

Attributes inherited from Command

#params, #target

Instance Method Summary collapse

Methods inherited from Command

#execute, #initialize, #post_initialize, #valid?

Constructor Details

This class inherits a constructor from Command

Instance Method Details

#issue_commandObject



4
5
6
# File 'lib/another_toy_robot/right_command.rb', line 4

def issue_command
  @target.right
end