Sha256: 966971ac0f52ddb0468663a3fbcfd482ddc258ed9f25eb752d8f31bdd1594c12

Contents?: true

Size: 234 Bytes

Versions: 2

Compression:

Stored size: 234 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
robot_rea-0.1.5 lib/robot/commands/right.rb
robot_rea-0.1.4 lib/robot/commands/right.rb