Sha256: 5db78b895900f4f3d217f050de709c63fa6d26767a2764cb3c68610fe8a9d661

Contents?: true

Size: 874 Bytes

Versions: 8

Compression:

Stored size: 874 Bytes

Contents

# encoding: utf-8
#
# The <code>border_lines</code> option accepts an array with the styles of the
# border sides. The default is <code>[:solid, :solid, :solid, :solid]</code>.
#
# <code>border_lines</code> must be set to an array.
#
require File.expand_path(File.join(File.dirname(__FILE__),
                                   %w[.. example_helper]))

filename = File.basename(__FILE__).gsub('.rb', '.pdf')
Prawn::Example.generate(filename) do
  data =  [ ["Look at how the cell border lines can be mixed", "", ""],
            ["dotted top border", "", ""],
            ["solid right border", "", ""],
            ["dotted bottom border", "", ""],
            ["dashed left border", "", ""]
          ]
  
  text "Cell :border_lines => [:dotted, :solid, :dotted, :dashed]"
  
  table(data, :cell_style => 
    { :border_lines => [:dotted, :solid, :dotted, :dashed] })
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
prawn-1.0.0 manual/table/cell_border_lines.rb
prawn-0.15.0 manual/table/cell_border_lines.rb
prawn-0.14.0 manual/table/cell_border_lines.rb
prawn-0.13.2 manual/table/cell_border_lines.rb
prawn-0.13.1 manual/table/cell_border_lines.rb
prawn-0.13.0 manual/table/cell_border_lines.rb
prawn-1.0.0.rc2 manual/table/cell_border_lines.rb
nurettin-prawn-1.0.0.rc1 manual/table/cell_border_lines.rb