Your syntax is incorrect.
Yes, you can figure it out. Look at the examples or read the source.
-greg
Actually, I misread your initial question. Here are some details
that may help:
Prawn::Table::Cell does not have knowledge of colspan, and never will.
This is because cell can be used outside of a table, so colspan
doesn't make sense there.
Really, what happens is when you have { :text => "....", :colspan => 2
} in your data array, Prawn's table code creates a double width cell
for you.
But no more options are exposed there. Passing :background_color does
nothing, because it's never passed on to the Cell constructor. This
is something I am open to amending. Please file a ticket with a
request on github, and if someone provides a relatively simple patch
that enables:
{ :text => "...", :colspan => k, :background_color => "..." }
I will pull it in. Sorry for the initial confusion, but in the
future, be sure to dive in and read the source. It really helps with
situations like this.
-greg