randym/axlsx — Issue #11: Serializing stream
Author: dmitry
Created: 2012-01-02 12:52:19+00:00
State: open

How to serialize a stream? For example I want to serialize everything into StringIO object. ZipOutputStream have second parameter in initialize method for that kind of things. We can do something like:

def serialize(output, confirm_valid=false)
Zip::ZipOutputStream.send(output.is_a?(String) ? :open : :write_buffer) # and so on..

More or less duplicate of #3