class Prawn::Table::Cell::Subtable
A Cell that contains another table.
@private
Attributes
subtable[R]
Public Class Methods
new(pdf, point, options={})
click to toggle source
Calls superclass method
Prawn::Table::Cell.new
# File lib/prawn/table/cell/subtable.rb, line 18 def initialize(pdf, point, options={}) super @subtable = options[:content] # Subtable padding defaults to zero @padding = [0, 0, 0, 0] end
Public Instance Methods
draw_content()
click to toggle source
Draws the subtable.
# File lib/prawn/table/cell/subtable.rb, line 58 def draw_content @subtable.draw end
max_width()
click to toggle source
Proxied to subtable.
# File lib/prawn/table/cell/subtable.rb, line 46 def max_width @subtable.cells.max_width end
min_width()
click to toggle source
Proxied to subtable.
# File lib/prawn/table/cell/subtable.rb, line 40 def min_width @subtable.cells.min_width end
natural_content_height()
click to toggle source
Proxied to subtable.
# File lib/prawn/table/cell/subtable.rb, line 52 def natural_content_height @subtable.cells.height end
natural_content_width()
click to toggle source
Proxied to subtable.
# File lib/prawn/table/cell/subtable.rb, line 34 def natural_content_width @subtable.cells.width end
text_color=(color)
click to toggle source
Sets the text color of the entire subtable.
# File lib/prawn/table/cell/subtable.rb, line 28 def text_color=(color) @subtable.cells.text_color = color end