Class: Traject::NullWriter

Inherits:
Object
  • Object
show all
Defined in:
lib/traject/null_writer.rb

Overview

A Null writer that does absolutely nothing with records given to it, just drops em on the floor.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argSettings) ⇒ NullWriter

Returns a new instance of NullWriter.



6
7
# File 'lib/traject/null_writer.rb', line 6

def initialize(argSettings)
end

Instance Attribute Details

#settingsObject (readonly)

Returns the value of attribute settings.



4
5
6
# File 'lib/traject/null_writer.rb', line 4

def settings
  @settings
end

Instance Method Details

#closeObject



18
19
20
# File 'lib/traject/null_writer.rb', line 18

def close
  # null
end

#put(context) ⇒ Object



14
15
16
# File 'lib/traject/null_writer.rb', line 14

def put(context)
  # null
end

#serialize(context) ⇒ Object



10
11
12
# File 'lib/traject/null_writer.rb', line 10

def serialize(context)
  # null
end