ruby - axlsx serialize spreadsheet to string -
For testing purposes, I want to serialize an axlsx spreadsheet into a string. This indicates that it is possible for "output file or string IO" but I do not get documentation or a code sample that tells how to output stringIo. How is this done?
From
: serializing a stream s = package .to_stream () File.open ('example_streamed.xlsx', 'w') {| F | f.write (s.read)}
Comments
Post a Comment