Class: LatexTools::LatexTable::Row
- Inherits:
-
Object
- Object
- LatexTools::LatexTable::Row
- Extended by:
- Forwardable
- Defined in:
- lib/latex_table.rb
Overview
:nodoc: all
Constant Summary collapse
- TAGS =
[ :cline, :hline, :provisional ]
Instance Attribute Summary collapse
-
#special_tag ⇒ Object
(also: #tag)
Returns the value of attribute special_tag.
Instance Method Summary collapse
-
#initialize(tag = nil) ⇒ Row
constructor
A new instance of Row.
- #num_columns ⇒ Object
Constructor Details
Instance Attribute Details
#special_tag ⇒ Object Also known as: tag
Returns the value of attribute special_tag.
59 60 61 |
# File 'lib/latex_table.rb', line 59 def special_tag @special_tag end |
Instance Method Details
#num_columns ⇒ Object
79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/latex_table.rb', line 79 def num_columns if(@special_tag == :cline) return @entries.last.end_col end ret_val = 0 @entries.each do |entry| add_val = entry.kind_of?(MultiColumn) ? entry.width : 1 if add_val == :fill return -1 end ret_val += add_val end return ret_val end |