class Savage::Directions::ClosePath
Public Class Methods
new(absolute=true)
click to toggle source
Calls superclass method
Savage::Direction::new
# File lib/savage/directions/close_path.rb, line 5 def initialize(absolute=true) super(absolute) end
Public Instance Methods
command_code()
click to toggle source
# File lib/savage/directions/close_path.rb, line 13 def command_code (absolute?) ? 'Z' : 'z' end
movement()
click to toggle source
# File lib/savage/directions/close_path.rb, line 17 def movement [0, 0] end
to_a()
click to toggle source
# File lib/savage/directions/close_path.rb, line 9 def to_a [command_code] end