class Xlsxtream::IO::Stream
Public Class Methods
new(stream)
click to toggle source
# File lib/xlsxtream/io/stream.rb, line 5 def initialize(stream) @stream = stream @path = nil end
Public Instance Methods
<<(data)
click to toggle source
# File lib/xlsxtream/io/stream.rb, line 10 def <<(data) @stream << data end
add_file(path)
click to toggle source
# File lib/xlsxtream/io/stream.rb, line 14 def add_file(path) close @path = path @stream << "#@path\n" end
close()
click to toggle source
# File lib/xlsxtream/io/stream.rb, line 20 def close @stream << "\n" if @path end