manual/graphics/stroke_cap.rb in prawn-2.2.2 vs manual/graphics/stroke_cap.rb in prawn-2.3.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + # The cap style defines how the edge of a line or curve will be drawn. There are # three types: <code>:butt</code> (the default), <code>:round</code> and # <code>:projecting_square</code> # # The difference is better seen with thicker lines. With <code>:butt</code> @@ -16,10 +18,10 @@ Prawn::ManualBuilder::Example.generate(filename) do stroke_axis self.line_width = 25 - [:butt, :round, :projecting_square].each_with_index do |cap, i| + %i[butt round projecting_square].each_with_index do |cap, i| self.cap_style = cap y = 250 - i * 100 stroke_horizontal_line 100, 300, at: y stroke_circle [400, y], 15