class Robot::Commands::Right

Constants

Public Class Methods

call(position) click to toggle source
# File lib/robot/commands/right.rb, line 12
def self.call(position)
  position.right
end
matches?(command) click to toggle source
# File lib/robot/commands/right.rb, line 8
def self.matches?(command)
  command == RIGHT
end