Sha256: 0de52e38a5a37d0a5e75ab7845076fc3bd887f46a6504ae0047d9fa2c2222e54

Contents?: true

Size: 304 Bytes

Versions: 14

Compression:

Stored size: 304 Bytes

Contents

module Savage
  module Directions
    class CoordinateTarget < Direction
    
      attr_accessor :target
    
      def initialize(target, absolute=true)
        @target = target
        super(absolute)
      end
    
      def to_command
        command_code << @target.to_s
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
savage-1.1.8 lib/savage/directions/coordinate_target.rb
savage-1.1.7 lib/savage/directions/coordinate_target.rb
savage-1.1.6 lib/savage/directions/coordinate_target.rb
savage-1.1.5 lib/savage/directions/coordinate_target.rb
savage-1.1.4 lib/savage/directions/coordinate_target.rb
savage-1.1.3 lib/savage/directions/coordinate_target.rb
savage-1.1.2 lib/savage/directions/coordinate_target.rb
savage-1.1.1 lib/savage/directions/coordinate_target.rb
savage-1.1.0 lib/savage/directions/coordinate_target.rb
savage-1.0.3 lib/savage/directions/coordinate_target.rb
savage-1.0.2 lib/savage/directions/coordinate_target.rb
savage-1.0.1 lib/savage/directions/coordinate_target.rb
savage-1.0.0 lib/savage/directions/coordinate_target.rb
savage-0.2.0 lib/savage/directions/coordinate_target.rb