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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Builds and renders a Document::Table object from raw data. For details on the options that can be passed, see Document::Table.new
- !ruby/struct:SM::Flow::VERB 
  body: "  data = [[&quot;Gregory&quot;,&quot;Brown&quot;],[&quot;James&quot;,&quot;Healy&quot;],[&quot;Jia&quot;,&quot;Wu&quot;]]\n\n  Prawn::Document.generate(&quot;table.pdf&quot;) do\n\n    # Default table, without headers\n    table(data)\n\n    # Default table with headers\n    table data, :headers =&gt; [&quot;First Name&quot;, &quot;Last Name&quot;]\n\n    # Very close to PDF::Writer's default SimpleTable output\n    table data, :headers            =&gt; [&quot;First Name&quot;, &quot;Last Name&quot;],\n                :font_size          =&gt; 10,\n                :vertical_padding   =&gt; 2,\n                :horizontal_padding =&gt; 5,\n                :position           =&gt; :center,\n                :row_colors         =&gt; :pdf_writer,\n\n    # Grid border style with explicit column widths.\n    table data, :border_style =&gt; :grid,\n                :column_widths       =&gt; { 0 =&gt; 100, 1 =&gt; 150 }\n\n  end\n\n  Will raise <tt>Prawn::Errors::EmptyTable</tt> given\n  a nil or empty <tt>data</tt> paramater.\n"
full_name: Prawn::Document#table
is_singleton: false
name: table
params: (data, options={})
visibility: public
