--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Creates a new Document::Table object. This is generally called indirectly through Document#table but can also be used explictly.
- !ruby/struct:SM::Flow::P 
  body: The <tt>data</tt> argument is a two dimensional array of strings, organized by row, e.g. [[&quot;r1-col1&quot;,&quot;r1-col2&quot;],[&quot;r2-col2&quot;,&quot;r2-col2&quot;]]. As with all Prawn text drawing operations, strings must be UTF-8 encoded.
- !ruby/struct:SM::Flow::P 
  body: The following options are available for customizing your tables, with defaults shown in [] at the end of each description.
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:headers</tt>:"
    body: An array of table headers, either strings or Cells. [Empty]
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:align_headers</tt>:"
    body: Alignment of header text. Specify for entire header (<tt>:left</tt>) or by column (<tt>{ 0 =&gt; :right, 1 =&gt; :left}</tt>). If omitted, the header alignment is the same as the column alignment.
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:header_text_color</tt>:"
    body: Sets the text color of the headers
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:header_color</tt>:"
    body: Manually sets the header color
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:font_size</tt>:"
    body: The font size for the text cells . [12]
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:horizontal_padding</tt>:"
    body: The horizontal cell padding in PDF points [5]
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:vertical_padding</tt>:"
    body: The vertical cell padding in PDF points [5]
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:padding</tt>:"
    body: Horizontal and vertical cell padding (overrides both)
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:border_width</tt>:"
    body: With of border lines in PDF points [1]
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:border_style</tt>:"
    body: If set to :grid, fills in all borders. If set to :underline_header, underline header only. Otherwise, borders are drawn on columns only, not rows
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:border_color</tt>:"
    body: Sets the color of the borders.
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:position</tt>:"
    body: One of <tt>:left</tt>, <tt>:center</tt> or <tt>n</tt>, where <tt>n</tt> is an x-offset from the left edge of the current bounding box
  type: :NOTE
- !ruby/struct:SM::Flow::P 
  body: <tt>:width:</tt> A set width for the table, defaults to the sum of all column widths <tt>:column_widths:</tt> A hash of indices and widths in PDF points. E.g. <tt>{ 0 =&gt; 50, 1 =&gt; 100 }</tt>
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:row_colors</tt>:"
    body: An array of row background colors which are used cyclicly.
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:align</tt>:"
    body: Alignment of text in columns, for entire table (<tt>:center</tt>) or by column (<tt>{ 0 =&gt; :left, 1 =&gt; :center}</tt>)
  type: :NOTE
- !ruby/struct:SM::Flow::P 
  body: Row colors are specified as html encoded values, e.g. [&quot;ffffff&quot;,&quot;aaaaaa&quot;,&quot;ccaaff&quot;]. You can also specify <tt>:row_colors =&gt; :pdf_writer</tt> if you wish to use the default color scheme from the PDF::Writer library.
- !ruby/struct:SM::Flow::P 
  body: See Document#table for typical usage, as directly using this class is not recommended unless you know why you want to do it.
full_name: Prawn::Table::new
is_singleton: true
name: new
params: (data, document, options={})
visibility: public
