Sha256: 16e48fd9a80c382eed9b4962628d3ee901470407bd5a8f19ef94216abeab46bb

Contents?: true

Size: 258 Bytes

Versions: 4

Compression:

Stored size: 258 Bytes

Contents

# frozen_string_literal: true

module Robot
  module Commands
    class Left < Base
      def self.matches?(command)
        command.to_sym == Robot::Directions::LEFT
      end

      def self.call(position)
        position.left
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
robot_rea-0.1.9 lib/robot/commands/left.rb
robot_rea-0.1.8 lib/robot/commands/left.rb
robot_rea-0.1.7 lib/robot/commands/left.rb
robot_rea-0.1.6 lib/robot/commands/left.rb