Class: PDF::SimpleTable::Column::Heading

Inherits:
Object
  • Object
show all
Defined in:
lib/pdf/simpletable.rb

Overview

Formatting options for heading rows. Each column can have a separate heading value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title = nil) {|_self| ... } ⇒ Heading

Returns a new instance of Heading.

Yields:

  • (_self)

Yield Parameters:



58
59
60
61
# File 'lib/pdf/simpletable.rb', line 58

def initialize(title = nil)
  @title = title
  yield self if block_given?
end

Instance Attribute Details

#boldObject

Indicates that the heading should be rendered bold.



64
65
66
# File 'lib/pdf/simpletable.rb', line 64

def bold
  @bold
end

#justificationObject

The justification of the heading of the column. May be :left, :center, :right, or :full.



67
68
69
# File 'lib/pdf/simpletable.rb', line 67

def justification
  @justification
end

#titleObject

The title of the heading. If nothing is present, the name of the column will be used when headings are displayed.



70
71
72
# File 'lib/pdf/simpletable.rb', line 70

def title
  @title
end