lib/axlsx/package.rb
def to_stream(confirm_valid=false)
      return false unless !confirm_valid || self.validate.empty?
      zip = write_parts(Zip::ZipOutputStream.new("streamed", true))
      stream = zip.close_buffer
      stream.rewind
      stream
    end
# Serialize your workbook to a StringIO instance
# @param [Boolean] confirm_valid Validate the package prior to serialization.
# @return [StringIO|Boolean] False if confirm_valid and validation errors exist. rewound string IO if not.
Serialize your workbook to a StringIO instance
Serialize your workbook to a StringIO instance
def to_stream(confirm_valid=false)
      return false unless !confirm_valid || self.validate.empty?
      zip = write_parts(Zip::ZipOutputStream.new("streamed", true))
      stream = zip.close_buffer
      stream.rewind
      stream
    end
def to_stream ( confirm_valid = false ) return false unless ! confirm_valid || self . validate . empty? zip = write_parts ( Zip :: ZipOutputStream . new ( "streamed" , true ) ) stream = zip . close_buffer stream . rewind stream end
Serialize your workbook to a StringIO instance
Serialize your workbook to a StringIO instance
False if confirm_valid and validation errors exist. rewound string IO if not.
False if confirm_valid and validation errors exist . rewound string IO if not .
StringIO|Boolean
confirm_valid
confirm_valid Validate the package prior to serialization.
confirm_valid Validate the package prior to serialization .