Class | SimpleTablePDF
In: | lib/simple_table_pdf.rb
Parent: | SimplePDF

テーブルを描画する PDF のクラス。

### Methods

new output

### Attributes

bottom_margin | [R] |
table | [RW] |

### Public Class methods

new(options={})

[Source]

        # File lib/simple_table_pdf.rb, line 3
     3:   def initialize(options={})
     4:     super
     5:
     6:     # default value
     7:     @page_order = 0  # 0 => "Down, then over", else => "Over, then down"
     8:     @bottom_margin = 25.0 # mm
     9:
    10:     # retrieve options
    11:     options.each do |key,val|
    12:       case(key)
    13:       when :table
    14:         @table = val # an instance of SimpleTable
    15:       when :page_order
    16:         @page_order = val # 0 => "Down, then over", else => "Over, then down"
    17:       when :bottom_margin
    18:         @bottom_margin = val # mm
    19:       end
    20:     end
    21:
    22:     SetAutoPageBreak(false)
    23:   end

### Public Instance methods

output()

[Source]

        # File lib/simple_table_pdf.rb, line 27
    27:   def output
    28:     draw_table
    29:     super
    30:   end

[Validate]