Method: TableSetting::Sheet#num_columns
- Defined in:
- lib/table_setting/sheet.rb
#num_columns ⇒ Object
24 25 26 27 28 29 30 31 32 |
# File 'lib/table_setting/sheet.rb', line 24 def num_columns max = 0 rows.each do |row| if row.num_columns > max max = row.num_columns end end max end |