Module: Prawn::Graphics::JoinStyle

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

Constant Summary collapse

JOIN_STYLES =

Sets the join_style for stroked lines and curves

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

Instance Method Summary collapse

Instance Method Details

#join_style(style = nil) ⇒ Object Also known as: join_style=

style is one of :miter, :round, or :bevel



18
19
20
21
22
23
24
# File 'lib/prawn/graphics/join_style.rb', line 18

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

  @join_style = style

  write_stroke_join_style
end