module Robot module Commands class Right < Base RIGHT = 'RIGHT'.freeze def self.matches?(command) command == RIGHT end def self.call(position) position.right end end end end