Method: PDF::Writer::Graphics#close_stroke

Defined in:
lib/pdf/writer/graphics.rb

#close_strokeObject

Close the current path by appending a straight line segment from the drawing point to the starting point of the path, and then stroke it. This does the same as #close followed by #stroke.



64
65
66
67
# File 'lib/pdf/writer/graphics.rb', line 64

def close_stroke
  add_content(" s")
  self
end