class DYI::Shape::Path::CloseCommand
Public Class Methods
commands(preceding_command)
click to toggle source
# File lib/dyi/shape/path.rb, line 724 def commands(preceding_command) [new(preceding_command)] end
new(preceding_command)
click to toggle source
# File lib/dyi/shape/path.rb, line 694 def initialize(preceding_command) raise ArgumentError, 'preceding_command is nil' if preceding_command.nil? @relative = nil @preceding_command = preceding_command @point = nil end
Public Instance Methods
absolute?()
click to toggle source
# File lib/dyi/shape/path.rb, line 709 def absolute? nil end
instructions_char()
click to toggle source
# File lib/dyi/shape/path.rb, line 717 def instructions_char 'Z' end
last_point()
click to toggle source
# File lib/dyi/shape/path.rb, line 701 def last_point start_point end
relative?()
click to toggle source
# File lib/dyi/shape/path.rb, line 705 def relative? nil end
to_concise_syntax_fragments()
click to toggle source
# File lib/dyi/shape/path.rb, line 713 def to_concise_syntax_fragments instructions_char end