Class: ArcFurnace::Sink
- Inherits:
-
Object
- Object
- ArcFurnace::Sink
- Defined in:
- lib/arc-furnace/sink.rb
Direct Known Subclasses
AllFieldsCSVSink, CSVSink, ExcelSink, FixedColumnCSVSink, NullSink, PassthroughSink
Instance Method Summary collapse
-
#finalize ⇒ Object
If the sink needs to perform any clean-up (closing file handles, etc), do it here.
-
#prepare ⇒ Object
Handle any pre-processing here.
-
#row(row) ⇒ Object
The only required method to implement.
Instance Method Details
#finalize ⇒ Object
If the sink needs to perform any clean-up (closing file handles, etc), do it here.
17 18 19 |
# File 'lib/arc-furnace/sink.rb', line 17 def finalize end |
#prepare ⇒ Object
Handle any pre-processing here.
11 12 13 |
# File 'lib/arc-furnace/sink.rb', line 11 def prepare end |
#row(row) ⇒ Object
The only required method to implement. #row is called for each output row and a sink must handle each.
6 7 8 |
# File 'lib/arc-furnace/sink.rb', line 6 def row(row) raise "Unimplemented!" end |