Class: PDF::SimpleTable::Column::Heading
- Inherits:
-
Object
- Object
- PDF::SimpleTable::Column::Heading
- Defined in:
- lib/gems/pdf-writer-1.1.8/lib/pdf/simpletable.rb
Overview
Formatting options for heading rows. Each column can have a separate heading value.
Instance Attribute Summary collapse
-
#bold ⇒ Object
Indicates that the heading should be rendered bold.
-
#justification ⇒ Object
The justification of the heading of the column.
-
#title ⇒ Object
The title of the heading.
Instance Method Summary collapse
-
#initialize(title = nil) {|_self| ... } ⇒ Heading
constructor
A new instance of Heading.
Constructor Details
#initialize(title = nil) {|_self| ... } ⇒ Heading
Returns a new instance of Heading.
53 54 55 56 |
# File 'lib/gems/pdf-writer-1.1.8/lib/pdf/simpletable.rb', line 53 def initialize(title = nil) @title = title yield self if block_given? end |
Instance Attribute Details
#bold ⇒ Object
Indicates that the heading should be rendered bold.
59 60 61 |
# File 'lib/gems/pdf-writer-1.1.8/lib/pdf/simpletable.rb', line 59 def bold @bold end |
#justification ⇒ Object
The justification of the heading of the column. May be :left, :center, :right, or :full.
62 63 64 |
# File 'lib/gems/pdf-writer-1.1.8/lib/pdf/simpletable.rb', line 62 def justification @justification end |
#title ⇒ Object
The title of the heading. If nothing is present, the name of the column will be used when headings are displayed.
65 66 67 |
# File 'lib/gems/pdf-writer-1.1.8/lib/pdf/simpletable.rb', line 65 def title @title end |