Class: Traject::NullWriter
- Inherits:
-
Object
- Object
- Traject::NullWriter
- 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
-
#settings ⇒ Object
readonly
Returns the value of attribute settings.
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(argSettings) ⇒ NullWriter
constructor
A new instance of NullWriter.
- #put(context) ⇒ Object
- #serialize(context) ⇒ Object
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
#settings ⇒ Object (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
#close ⇒ Object
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 |