Sha256: 003d3c8a18b9e64aa296b3ff537a40b50e0441806699ed3c3ef888704772c197
Contents?: true
Size: 345 Bytes
Versions: 14
Compression:
Stored size: 345 Bytes
Contents
module Savage module Directions class PointTarget < Direction attr_accessor :target def initialize(x, y, absolute=true) @target = Point.new(x,y) super(absolute) end def to_command command_code << "#{@target.x.to_s} #{@target.y.to_s}".gsub(/ -/,'-') end end end end
Version data entries
14 entries across 14 versions & 1 rubygems