Method: Roo::Excelx::Sheet#last_column
- Defined in:
- lib/roo/excelx/sheet.rb
#last_column ⇒ Object
returns the number of the last non-empty column
67 68 69 |
# File 'lib/roo/excelx/sheet.rb', line 67 def last_column @last_column ||= present_cells.keys.map { |_, col| col }.max end |