examples/grid/multi_boxes.rb in prawn-0.11.1.pre vs examples/grid/multi_boxes.rb in prawn-0.11.1
- old
+ new
@@ -1,7 +1,8 @@
# encoding: utf-8
-require "#{File.dirname(__FILE__)}/../example_helper.rb"
+require File.expand_path(File.join(File.dirname(__FILE__),
+ %w[.. example_helper]))
Prawn::Document.generate('multi_boxes.pdf') do |p|
p.define_grid(:columns => 5, :rows => 8, :gutter => 10)
p.grid.rows.times do |i|