module Flow::Operation::Execute
Public Instance Methods
behavior()
click to toggle source
# File lib/flow/operation/execute.rb, line 38 def behavior # abstract method which should be defined by descendants with the functionality of the given operation end
execute()
click to toggle source
# File lib/flow/operation/execute.rb, line 30 def execute execute! rescue Operation::Failures::OperationFailure => exception @operation_failure = exception self end
execute!()
click to toggle source
# File lib/flow/operation/execute.rb, line 18 def execute! run_callbacks(:execute) do run_callbacks(:behavior) { behavior } end self rescue StandardError => exception rescue_with_handler(exception) || raise self end