Sha256: b1e201551e32aff9aa6ce326435f9342ecd5962a525508293519c8324b9af1aa
Contents?: true
Size: 399 Bytes
Versions: 1
Compression:
Stored size: 399 Bytes
Contents
# Save to a file using Axlsx::Package#serialize def serialize(filename) @axlsx.serialize File.expand_path("../../tmp/#{filename}.xlsx", __FILE__) assert_equal true, @workbook.styles_applied end # Save to a file by getting contents from stream def to_stream(filename) File.open(File.expand_path("../../tmp/#{filename}.xlsx", __FILE__), 'wb') do |f| f.write @axlsx.to_stream.read end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axlsx_styler-1.2.0 | test/helper_methods.rb |