Sha256: d6312d5944bf1c81be3f338dfc3fa32c883f5225f2888c619abd341f82d42964

Contents?: true

Size: 232 Bytes

Versions: 2

Compression:

Stored size: 232 Bytes

Contents

require_relative 'response'

module Command
  class TurnLeft
    def execute(compass, location, tokens)
      Response.new(
        compass: compass.turn,
        location: location,
        tokens: tokens
      )
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
karel-interpreter-0.2.0 lib/karel/command/turn_left.rb
karel-interpreter-0.1.0 lib/karel/command/turn_left.rb