class Robot::Commands::Left

Public Class Methods

call(position) click to toggle source
# File lib/robot/commands/left.rb, line 10
def self.call(position)
  position.left
end
matches?(command) click to toggle source
# File lib/robot/commands/left.rb, line 6
def self.matches?(command)
  command.to_sym == Robot::Directions::LEFT
end