manual/graphics/stroke_join.rb in prawn-1.0.0 vs manual/graphics/stroke_join.rb in prawn-1.1.0
- old
+ new
@@ -9,17 +9,17 @@
#
require File.expand_path(File.join(File.dirname(__FILE__),
%w[.. example_helper]))
filename = File.basename(__FILE__).gsub('.rb', '.pdf')
-Prawn::Example.generate(filename) do
+Prawn::ManualBuilder::Example.generate(filename) do
stroke_axis
-
+
self.line_width = 25
-
+
[:miter, :round, :bevel].each_with_index do |style, i|
self.join_style = style
-
+
y = 200 - i*100
stroke do
move_to(100, y)
line_to(200, y + 100)
line_to(300, y)