Class: CanvasSync::Importers::BulkImporter::NullRowBuffer

Inherits:
Object
  • Object
show all
Defined in:
lib/canvas_sync/importers/bulk_importer.rb

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ NullRowBuffer

Returns a new instance of NullRowBuffer.



171
172
173
# File 'lib/canvas_sync/importers/bulk_importer.rb', line 171

def initialize(&block)
  @flush_out = block
end

Instance Method Details

#<<(v) ⇒ Object



175
176
177
# File 'lib/canvas_sync/importers/bulk_importer.rb', line 175

def <<(v)
  @flush_out.call(v)
end

#flushObject



179
# File 'lib/canvas_sync/importers/bulk_importer.rb', line 179

def flush; end