module Prawn::Graphics::CapStyle
Implements stroke cap styling
Constants
- CAP_STYLES
-
@private
Public Instance Methods
Source
# File lib/prawn/graphics/cap_style.rb, line 19 def cap_style(style = nil) return current_cap_style || :butt if style.nil? self.current_cap_style = style write_stroke_cap_style end
Sets the cap style for stroked lines and curves.
@overload cap_style(style)
@param style [:butt, :round, :projecting_square] (:butt) @return [void]
@overload cap_style()
@return [Symbol]
Also aliased as: cap_style=