Sha256: a001542074d3a4a9e6893c60bc440248067dfc8ef2a930a2f2dfd7db69a3d75d
Contents?: true
Size: 1.26 KB
Versions: 5
Compression:
Stored size: 1.26 KB
Contents
# frozen_string_literal: true module ConvenientService module Service module Plugins module CanHaveSteps module Entities class Step module Plugins module CanBeMethodStep module CanBeExecuted class Middleware < MethodChainMiddleware intended_for :service_result, entity: :step ## # @return [ConvenientService::Service::Plugins::HasJSendResult::Entities::Result] # @raise [ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step::Plugins::CanBeResultStep::CanBeExecuted::Exceptions::MethodForStepIsNotDefined] # # @internal # NOTE: `kwargs` are intentionally NOT passed to `object.__send__(method)`, since all the corresponding methods are available inside `entity.organizer.__send__(entity.method)` body. # def next(...) return chain.next(...) unless entity.method_step? entity.organizer.__send__(entity.method) end end end end end end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems