A Cell that contains another table.
# File lib/prawn/table/cell/subtable.rb, line 17 def initialize(pdf, point, options={}) super @subtable = options[:content] # Subtable padding defaults to zero @padding = [0, 0, 0, 0] end
Draws the subtable.
# File lib/prawn/table/cell/subtable.rb, line 57 def draw_content @subtable.draw end
Proxied to subtable.
# File lib/prawn/table/cell/subtable.rb, line 45 def max_width @subtable.cells.max_width end
Proxied to subtable.
# File lib/prawn/table/cell/subtable.rb, line 39 def min_width @subtable.cells.min_width end
Proxied to subtable.
# File lib/prawn/table/cell/subtable.rb, line 51 def natural_content_height @subtable.cells.height end
Proxied to subtable.
# File lib/prawn/table/cell/subtable.rb, line 33 def natural_content_width @subtable.cells.width end
Sets the text color of the entire subtable.
# File lib/prawn/table/cell/subtable.rb, line 27 def text_color=(color) @subtable.cells.text_color = color end