Module: Prawn::Graphics::CapStyle
- Included in:
 - Prawn::Graphics
 
- Defined in:
 - lib/prawn/graphics/cap_style.rb
 
Stable API collapse
- CAP_STYLES =
 { butt: 0, round: 1, projecting_square: 2 }.freeze
Stable API collapse
- 
  
    
      #cap_style(style = nil)  ⇒ Object 
    
    
      (also: #cap_style=)
    
  
  
  
  
  
  
  
  
  
    
Sets the cap style for stroked lines and curves.
 
Instance Method Details
#cap_style(style = nil) ⇒ Object Also known as: cap_style=
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.
      22 23 24 25 26 27 28  | 
    
      # File 'lib/prawn/graphics/cap_style.rb', line 22 def cap_style(style = nil) return current_cap_style || :butt if style.nil? self.current_cap_style = style write_stroke_cap_style end  |