Sha256: 282e391d5c241678cdc7db1bf4e3e3d86f47e4e629e80ae0333c9af047bd39f4

Contents?: true

Size: 286 Bytes

Versions: 1

Compression:

Stored size: 286 Bytes

Contents

module Savage
  module Directions
    class CoordinateTarget < Direction

      attr_accessor :target

      def initialize(target, absolute=true)
        @target = target
        super(absolute)
      end

      def to_a
        [command_code, @target.to_s]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
savage-1.2.0 lib/savage/directions/coordinate_target.rb