Class: Platanus::ExcelBuilder
- Inherits:
-
Object
- Object
- Platanus::ExcelBuilder
- Defined in:
- lib/platanus/templates/spreadsheet.rb
Overview
Template Handler, just exposes a spreadsheet’s Workbook to a template.
Class Method Summary collapse
Class Method Details
.call(template) ⇒ Object
17 18 19 |
# File 'lib/platanus/templates/spreadsheet.rb', line 17 def self.call(template) "book = ::Spreadsheet::Workbook.new;" + template.source + ";io=StringIO.new('');book.write io;io.close;io.string;" end |