module Prawn::Graphics::CapStyle
Constants
- CAP_STYLES
Public Instance Methods
cap_style(style=nil)
click to toggle source
Sets the cap style for stroked lines and curves
style is one of :butt, :round, or :projecting_square
NOTE: If this method is never called, :butt will be used by default.
# File lib/prawn/graphics/cap_style.rb, line 21 def cap_style(style=nil) return @cap_style || :butt if style.nil? @cap_style = style write_stroke_cap_style end
Also aliased as: cap_style=
Private Instance Methods
write_stroke_cap_style()
click to toggle source
# File lib/prawn/graphics/cap_style.rb, line 33 def write_stroke_cap_style add_content "#{CAP_STYLES[@cap_style]} J" end