Class: ArcFurnace::PassthroughSink
- Defined in:
- lib/arc-furnace/passthrough_sink.rb
Instance Attribute Summary collapse
-
#collection ⇒ Object
readonly
Returns the value of attribute collection.
Instance Method Summary collapse
- #finalize ⇒ Object
-
#initialize(options = {}) ⇒ PassthroughSink
constructor
A new instance of PassthroughSink.
- #row(object) ⇒ Object
Methods inherited from Sink
Constructor Details
#initialize(options = {}) ⇒ PassthroughSink
Returns a new instance of PassthroughSink.
6 7 8 |
# File 'lib/arc-furnace/passthrough_sink.rb', line 6 def initialize( = {}) @collection = Set.new end |
Instance Attribute Details
#collection ⇒ Object (readonly)
Returns the value of attribute collection.
4 5 6 |
# File 'lib/arc-furnace/passthrough_sink.rb', line 4 def collection @collection end |
Instance Method Details
#finalize ⇒ Object
10 11 12 |
# File 'lib/arc-furnace/passthrough_sink.rb', line 10 def finalize collection.to_a end |
#row(object) ⇒ Object
14 15 16 |
# File 'lib/arc-furnace/passthrough_sink.rb', line 14 def row(object) collection << object end |