Class: MedPipe::PipelineTask::PlanUpdater
- Inherits:
-
Object
- Object
- MedPipe::PipelineTask::PlanUpdater
- Defined in:
- lib/med_pipe/pipeline_task/plan_updater.rb
Instance Method Summary collapse
- #call(context, input) {|inputをそのまま流す| ... } ⇒ Object
-
#initialize(save: false) ⇒ PlanUpdater
constructor
A new instance of PlanUpdater.
Constructor Details
#initialize(save: false) ⇒ PlanUpdater
Returns a new instance of PlanUpdater.
5 6 7 |
# File 'lib/med_pipe/pipeline_task/plan_updater.rb', line 5 def initialize(save: false) @save = save end |
Instance Method Details
#call(context, input) {|inputをそのまま流す| ... } ⇒ Object
12 13 14 15 |
# File 'lib/med_pipe/pipeline_task/plan_updater.rb', line 12 def call(context, input) update_plan(context) block_given? ? yield(input) : input end |