Module: Prawn::Graphics::JoinStyle

Included in:
Prawn::Graphics
Defined in:
lib/prawn/graphics/join_style.rb

Constant Summary

JOIN_STYLES =
{ :miter => 0, :round => 1, :bevel => 2 }

Stable API (collapse)

Instance Method Details

- (Object) join_style(style = nil) Also known as: join_style=

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



23
24
25
26
27
28
29
# File 'lib/prawn/graphics/join_style.rb', line 23

def join_style(style=nil)
  return current_join_style || :miter if style.nil?

  self.current_join_style = style

  write_stroke_join_style
end