Class: LatexTools::LatexTable::MultiColumn
- Inherits:
-
Object
- Object
- LatexTools::LatexTable::MultiColumn
- Defined in:
- lib/latex_table.rb
Overview
:nodoc: all
Constant Summary collapse
- ALIGNMENTS =
[:r, :c, :l]
Instance Attribute Summary collapse
-
#alignment ⇒ Object
Returns the value of attribute alignment.
-
#content ⇒ Object
Returns the value of attribute content.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(nc, aln, cont) ⇒ MultiColumn
constructor
A new instance of MultiColumn.
Constructor Details
#initialize(nc, aln, cont) ⇒ MultiColumn
Returns a new instance of MultiColumn.
111 112 113 114 115 116 |
# File 'lib/latex_table.rb', line 111 def initialize(nc, aln, cont) @width = nc @alignment = aln.to_sym raise "Invalid alignment specification" unless ALIGNMENTS.include?(@alignment) @content = cont end |
Instance Attribute Details
#alignment ⇒ Object
Returns the value of attribute alignment.
103 104 105 |
# File 'lib/latex_table.rb', line 103 def alignment @alignment end |
#content ⇒ Object
Returns the value of attribute content.
103 104 105 |
# File 'lib/latex_table.rb', line 103 def content @content end |
#width ⇒ Object
Returns the value of attribute width.
103 104 105 |
# File 'lib/latex_table.rb', line 103 def width @width end |