Sha256: 5bf51effe2065b78962ef7061675e15321e23ce71ca3bfd51690d2a563be973e
Contents?: true
Size: 258 Bytes
Versions: 4
Compression:
Stored size: 258 Bytes
Contents
# frozen_string_literal: true module Robot module Commands class Right < Base RIGHT = 'RIGHT' def self.matches?(command) command == RIGHT end def self.call(position) position.right end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
robot_rea-0.1.9 | lib/robot/commands/right.rb |
robot_rea-0.1.8 | lib/robot/commands/right.rb |
robot_rea-0.1.7 | lib/robot/commands/right.rb |
robot_rea-0.1.6 | lib/robot/commands/right.rb |