app/services/mutation_operations/base.rb
# Call an operation by name and run through {#with_result!} in order
# to easily handle its result.
#
# @note This differs from {#with_operation_result!} in that we inline the operation
#   call and also allow the implementation to use its own resolution logic.
# @param [String] name the fully-qualified name of the operation
# @param [<Object>] args the arguments for the operation (if any)
# @yield [matcher] handle the result of the operation based on `success` or `failure`
# @yieldparam [Dry::Matcher::ResultMatcher] matcher
# @yieldreturn [void]
# @return [void]
Call an operation by name and run through {#with_result!} in order
to easily handle its result.
Call an operation by name and run through { #with_result! } in order to easily handle its result .
def with_called_operation!(name, *args, &block)
      result = call_operation(name, *args)
      with_result! result, &block
    end
def with_called_operation! ( name , * args , & block ) result = call_operation ( name , * args ) with_result! result , & block end
Call an operation by name and run through {#with_result!}
Call an operation by name and run through { #with_result! }
None
void
None
void
name
args
block
None
]
handle the result of the operation based on `success` or `failure`
handle the result of the operation based on ` success ` or ` failure `
note
This differs from {#with_operation_result!} in that we inline the operation call and also allow the implementation to use its own resolution logic.
This differs from { #with_operation_result! } in that we inline the operation call and also allow the implementation to use its own resolution logic .