lib/savage/directions/coordinate_target.rb in savage-1.1.8 vs lib/savage/directions/coordinate_target.rb in savage-1.2.0
- old
+ new
@@ -1,17 +1,17 @@
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
+
+ def to_a
+ [command_code, @target.to_s]
end
end
end
end
\ No newline at end of file