randym/axlsx — Issue #3: Serializing to any output
Author: ochko
Created: 2011-12-14 05:41:49+00:00
State: open

Here is how I'm going to use it:

```ruby
p = Axlsx::Package.new

# Do a lot of fun with worksheets
#....
#....

# Time to persist but not in filesystem, maybe db?
begin
tmpfile = Tempfile.new("temporary.xlsx")
p.serialize tmpfile.path
save(File.read(tmpfile.path)
ensure
File.unlink(tmpfile.path)
end
```

Last begin ... ensure ... end block is a big messy. It would be nice it was able to write something like:

```ruby
save(p.serialize)
```

Thanks