Sets the join style for stroked lines and curves
style is one of :miter, :round, or :bevel
NOTE: if this method is never called, :miter will be used for join style throughout the document
# File lib/prawn/graphics/join_style.rb, line 20 def join_style(style=nil) return current_join_style || :miter if style.nil? self.current_join_style = style write_stroke_join_style end
# File lib/prawn/graphics/join_style.rb, line 32 def current_join_style graphic_state.join_style end
# File lib/prawn/graphics/join_style.rb, line 36 def current_join_style=(style) graphic_state.join_style = style end
# File lib/prawn/graphics/join_style.rb, line 41 def write_stroke_join_style add_content "#{JOIN_STYLES[current_join_style]} j" end