Sha256: bb0c92480d43cba096fea9926023c3010743233c0f3f97d159322f5ddea2df06
Contents?: true
Size: 398 Bytes
Versions: 2
Compression:
Stored size: 398 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__), 'w') do |f| f.write @axlsx.to_stream.read end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
axlsx_styler-1.1.0 | test/helper_methods.rb |
axlsx_styler-1.0.0 | test/helper_methods.rb |