Sha256: 2fd5be0e250010f7a40f84b6a1ed0ca845fac8bdaa8aaf4819cb2f2b5b20dfb1
Contents?: true
Size: 908 Bytes
Versions: 3
Compression:
Stored size: 908 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::ManualBuilder::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
3 entries across 3 versions & 1 rubygems