Prawn::Table::Cell::Subtable

A Cell that contains another table.

Attributes

subtable[R]

Public Class Methods

new(pdf, point, options={}) click to toggle source
    # File lib/prawn/table/cell/subtable.rb, line 18
18:         def initialize(pdf, point, options={})
19:           super
20:           @subtable = options[:content]
21: 
22:           # Subtable padding defaults to zero
23:           @padding = [0, 0, 0, 0]
24:         end

Public Instance Methods

draw_content() click to toggle source

Draws the subtable.

    # File lib/prawn/table/cell/subtable.rb, line 58
58:         def draw_content
59:           @subtable.draw
60:         end
max_width() click to toggle source

Proxied to subtable.

    # File lib/prawn/table/cell/subtable.rb, line 46
46:         def max_width
47:           @subtable.cells.max_width
48:         end
min_width() click to toggle source

Proxied to subtable.

    # File lib/prawn/table/cell/subtable.rb, line 40
40:         def min_width
41:           @subtable.cells.min_width
42:         end
natural_content_height() click to toggle source

Proxied to subtable.

    # File lib/prawn/table/cell/subtable.rb, line 52
52:         def natural_content_height
53:           @subtable.cells.height
54:         end
natural_content_width() click to toggle source

Proxied to subtable.

    # File lib/prawn/table/cell/subtable.rb, line 34
34:         def natural_content_width
35:           @subtable.cells.width
36:         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
28:         def text_color=(color)
29:           @subtable.cells.text_color = color
30:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.