class Prawn::Table::Cell::Subtable
A Cell
that contains another table.
@private
Attributes
Public Class Methods
Source
# File lib/prawn/table/cell/subtable.rb, line 19 def initialize(pdf, point, options={}) super @subtable = options[:content] # Subtable padding defaults to zero @padding = [0, 0, 0, 0] end
Calls superclass method
Prawn::Table::Cell::new
Public Instance Methods
Source
# File lib/prawn/table/cell/subtable.rb, line 59 def draw_content @subtable.draw end
Draws the subtable.
Source
# File lib/prawn/table/cell/subtable.rb, line 47 def max_width @subtable.cells.max_width end
Proxied to subtable.
Source
# File lib/prawn/table/cell/subtable.rb, line 41 def min_width @subtable.cells.min_width end
Proxied to subtable.
Source
# File lib/prawn/table/cell/subtable.rb, line 53 def natural_content_height @subtable.cells.height end
Proxied to subtable.
Source
# File lib/prawn/table/cell/subtable.rb, line 35 def natural_content_width @subtable.cells.width end
Proxied to subtable.
Source
# File lib/prawn/table/cell/subtable.rb, line 29 def text_color=(color) @subtable.cells.text_color = color end
Sets the text color of the entire subtable.