Class: Command::Response
- Inherits:
-
Object
- Object
- Command::Response
- Defined in:
- lib/karel/command/response.rb
Instance Method Summary collapse
-
#initialize(compass:, location:, tokens:, operations_count: 1, return_value: nil) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(compass:, location:, tokens:, operations_count: 1, return_value: nil) ⇒ Response
Returns a new instance of Response.
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/karel/command/response.rb', line 11 def initialize( compass:, location:, tokens:, operations_count: 1, return_value: nil ) @compass = compass @location = location @return_value = return_value @tokens = tokens @operations_count = operations_count end |