Class: Opera::Operation::Instructions::Executors::FinishIf

Inherits:
Executor
  • Object
show all
Defined in:
lib/opera/operation/instructions/executors/finish_if.rb

Instance Attribute Summary

Attributes inherited from Executor

#operation

Instance Method Summary collapse

Methods inherited from Executor

#add_instruction_output, #break_condition, #config, #context, #evaluate_instruction, #evaluate_instructions, #initialize, #production_mode?, #reporter, #result

Constructor Details

This class inherits a constructor from Opera::Operation::Executor

Instance Method Details

#call(instruction) ⇒ Object



8
9
10
11
# File 'lib/opera/operation/instructions/executors/finish_if.rb', line 8

def call(instruction)
  instruction[:kind] = :step
  operation.finish! if super
end