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 19 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 59 def draw_content @subtable.draw end
max_width()
click to toggle source
Proxied to subtable.
# File lib/prawn/table/cell/subtable.rb, line 47 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 41 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 53 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 35 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 29 def text_color=(color) @subtable.cells.text_color = color end