Class: Fall::RecordOperationPipeline
- Inherits:
-
Object
- Object
- Fall::RecordOperationPipeline
- Defined in:
- lib/fall/record_operation_pipeline.rb
Instance Method Summary collapse
- #add_operation(operation) ⇒ Object (also: #add_record_operation)
-
#initialize(source) ⇒ RecordOperationPipeline
constructor
A new instance of RecordOperationPipeline.
- #to_enum ⇒ Object
Constructor Details
#initialize(source) ⇒ RecordOperationPipeline
Returns a new instance of RecordOperationPipeline.
3 4 5 6 |
# File 'lib/fall/record_operation_pipeline.rb', line 3 def initialize(source) @source = source @operation = RecordOperation.new(->(args) { args }) end |
Instance Method Details
#add_operation(operation) ⇒ Object Also known as: add_record_operation
8 9 10 |
# File 'lib/fall/record_operation_pipeline.rb', line 8 def add_operation(operation) @operation = @operation.chain(operation) end |