Sha256: 5f0e19b4addf827254abd5d3de5dcb2ae175147c8db7cff072856b83e2834d4a
Contents?: true
Size: 368 Bytes
Versions: 1
Compression:
Stored size: 368 Bytes
Contents
module NeatSpreadsheet # Thanks to https://github.com/10to1/spreadsheet_on_rails for this method. def self.render_xls_string(spreadsheet) <<RENDER workbook = Spreadsheet::Workbook.new #{spreadsheet} blob = StringIO.new("") workbook.write(blob) blob.string RENDER end end require "neat-spreadsheet/engine" require 'neat-spreadsheet/implants'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
neat-spreadsheet-0.0.1 | lib/neat-spreadsheet.rb |