Class: ExportTo::Exporter::Xlsx
- Inherits:
-
Struct
- Object
- Struct
- ExportTo::Exporter::Xlsx
- Defined in:
- lib/export_to/exporter/xlsx.rb
Instance Attribute Summary collapse
-
#rows ⇒ Object
Returns the value of attribute rows.
Instance Method Summary collapse
Instance Attribute Details
#rows ⇒ Object
Returns the value of attribute rows
3 4 5 |
# File 'lib/export_to/exporter/xlsx.rb', line 3 def rows @rows end |
Instance Method Details
#export ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/export_to/exporter/xlsx.rb', line 5 def export rows.each! do |columns, model, x| worksheet.set_row(x, height, nil) if x > 0 worksheet.write_row(x, columns) end workbook.read_string end |