Class: Xeroizer::Report::HeaderRow
- Defined in:
- lib/xeroizer/report/row/header.rb
Instance Attribute Summary
Attributes inherited from Row
#cells, #header, #parent, #report, #rows, #title, #type
Instance Method Summary collapse
Methods inherited from Row
#cell, #child?, #header?, #initialize, #parent?, #row?, #section?, #summary?
Methods included from RowXmlHelper
Constructor Details
This class inherits a constructor from Xeroizer::Report::Row
Instance Method Details
#column_index(column_name) ⇒ Object
5 6 7 8 |
# File 'lib/xeroizer/report/row/header.rb', line 5 def column_index(column_name) @_column_index_cache ||= {} @_column_index_cache[column_name] ||= cells.find_index { | cell | cell.value == column_name.to_s } end |