Class: Latex::SingleRowFamily
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from RowFamily
Instance Method Summary collapse
- #<<(row) ⇒ Object
-
#initialize(columns, row) ⇒ SingleRowFamily
constructor
A new instance of SingleRowFamily.
- #row ⇒ Object
Methods inherited from RowFamily
#format, #formatter=, #style, #styler=
Constructor Details
#initialize(columns, row) ⇒ SingleRowFamily
Returns a new instance of SingleRowFamily.
181 182 183 184 185 186 |
# File 'lib/ruby-latex.rb', line 181 def initialize(columns, row) super(columns) row.family = self @rows = [row] end |
Instance Method Details
#<<(row) ⇒ Object
192 193 194 |
# File 'lib/ruby-latex.rb', line 192 def <<(row) raise "Unable to add new rows to a SingleRowFamily" end |
#row ⇒ Object
188 189 190 |
# File 'lib/ruby-latex.rb', line 188 def row @rows.first end |