Class: Command::TurnLeft

Inherits:
Object
  • Object
show all
Defined in:
lib/karel/command/turn_left.rb

Instance Method Summary collapse

Instance Method Details

#execute(compass, location, tokens) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/karel/command/turn_left.rb', line 5

def execute(compass, location, tokens)
  Response.new(
    compass: compass.turn,
    location: location,
    tokens: tokens
  )
end