Class: Schlepp::Sink::TableObject::Compressor::Writer
- Inherits:
-
Object
- Object
- Schlepp::Sink::TableObject::Compressor::Writer
- Defined in:
- lib/schlepp/sink/filter/compressor/writer.rb
Instance Method Summary collapse
- #finalize ⇒ Object
-
#initialize(writer, opts = {}) ⇒ Writer
constructor
A new instance of Writer.
- #rotate? ⇒ Boolean
- #write(rows) ⇒ Object
Constructor Details
Instance Method Details
#finalize ⇒ Object
26 27 28 29 30 31 |
# File 'lib/schlepp/sink/filter/compressor/writer.rb', line 26 def finalize bits = @stream.to_s @writer.write(bits) @writer.finalize end |
#rotate? ⇒ Boolean
22 23 24 |
# File 'lib/schlepp/sink/filter/compressor/writer.rb', line 22 def rotate? false end |
#write(rows) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/schlepp/sink/filter/compressor/writer.rb', line 14 def write(rows) Array(rows).each do |row| @written += row.length @stream.write(row) end end |