Class: ConvenientService::Common::Plugins::EnsuresNegatedJSendResult::Middleware Private

Inherits:
MethodChainMiddleware
  • Object
show all
Defined in:
lib/convenient_service/common/plugins/ensures_negated_j_send_result/middleware.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0

Instance Method Summary collapse

Instance Method Details

#nextConvenientService::Service::Plugins::HasJSendResult::Entities::Result

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



18
19
20
21
22
# File 'lib/convenient_service/common/plugins/ensures_negated_j_send_result/middleware.rb', line 18

def next(...)
  result = chain.next(...)

  result.negated? ? result : result.copy(overrides: {kwargs: {negated: true}})
end