Sha256: 21c9282948d63554953a9210df81d5237b64a6a9c12d6e801642ec1b6a5c595a

Contents?: true

Size: 303 Bytes

Versions: 4

Compression:

Stored size: 303 Bytes

Contents

# A Null writer that does absolutely nothing with records given to it,
# just drops em on the floor.
class Traject::MockWriter
  attr_reader :settings

  def initialize(argSettings)
  end


  def serialize(context)
    # null
  end

  def put(context)
    # null
  end

  def close
    # null
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
traject-0.13.1 lib/traject/mock_writer.rb
traject-0.13.0 lib/traject/mock_writer.rb
traject-0.12.0 lib/traject/mock_writer.rb
traject-0.11.0 lib/traject/mock_writer.rb