class Command::Move
Public Instance Methods
execute(compass, location, tokens)
click to toggle source
# File lib/karel/command/move.rb, line 5 def execute(compass, location, tokens) new_location = Response.new( compass: compass, location: compass.translate_location(location), tokens: tokens ) end