Object
A Grid represents the entire grid system of a Page and calculates the column width and row height of the base box.
Calculates the base width of boxes.
# File lib/prawn/layout/grid.rb, line 49
49: def column_width
50: @column_width ||= subdivide(pdf.bounds.width, columns, column_gutter)
51: end
# File lib/prawn/layout/grid.rb, line 73
73: def set_gutter(options)
74: if options.has_key?(:gutter)
75: @gutter = options[:gutter].to_f
76: @row_gutter, @column_gutter = @gutter, @gutter
77: else
78: @row_gutter = options[:row_gutter].to_f
79: @column_gutter = options[:column_gutter].to_f
80: @gutter = 0
81: end
82: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.