module Prawn::Graphics::JoinStyle

Constants

JOIN_STYLES

Public Instance Methods

join_style(style=nil) click to toggle source

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 @join_style || :miter if style.nil?

  @join_style = style

  write_stroke_join_style
end
Also aliased as: join_style=
join_style=(style=nil)
Alias for: join_style

Private Instance Methods

write_stroke_join_style() click to toggle source
# File lib/prawn/graphics/join_style.rb, line 32
def write_stroke_join_style
  add_content "#{JOIN_STYLES[@join_style]} j"
end