Sha256: 2e52761aa3e69d28c04241b3dfb01b61e556d03df17968e0c1fe26bd18e28215

Contents?: true

Size: 652 Bytes

Versions: 7

Compression:

Stored size: 652 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module HasResult
        module Entities
          class Result
            module Plugins
              module HasStep
                module Initialize
                  class Middleware < Core::MethodChainMiddleware
                    def next(*args, **kwargs, &block)
                      entity.internals.cache[:step] = kwargs[:step]

                      chain.next(*args, **kwargs, &block)
                    end
                  end
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
convenient_service-0.12.0 lib/convenient_service/service/plugins/has_result/entities/result/plugins/has_step/initialize/middleware.rb
convenient_service-0.11.0 lib/convenient_service/service/plugins/has_result/entities/result/plugins/has_step/initialize/middleware.rb
convenient_service-0.10.1 lib/convenient_service/service/plugins/has_result/entities/result/plugins/has_step/initialize/middleware.rb
convenient_service-0.10.0 lib/convenient_service/service/plugins/has_result/entities/result/plugins/has_step/initialize/middleware.rb
convenient_service-0.9.0 lib/convenient_service/service/plugins/has_result/entities/result/plugins/has_step/initialize/middleware.rb
convenient_service-0.8.0 lib/convenient_service/service/plugins/has_result/entities/result/plugins/has_step/initialize/middleware.rb
convenient_service-0.7.0 lib/convenient_service/service/plugins/has_result/entities/result/plugins/has_step/initialize/middleware.rb