lib/prawn/graphics/cap_style.rb in prawn-2.0.1 vs lib/prawn/graphics/cap_style.rb in prawn-2.0.2

- old
+ new

@@ -17,10 +17,10 @@ # # style is one of :butt, :round, or :projecting_square # # NOTE: If this method is never called, :butt will be used by default. # - def cap_style(style=nil) + def cap_style(style = nil) return current_cap_style || :butt if style.nil? self.current_cap_style = style write_stroke_cap_style