Sha256: 5aa1d647a5b4d5651a337ebd1e888540f5aad1bdf4cee974e9512a460a73efef

Contents?: true

Size: 484 Bytes

Versions: 8

Compression:

Stored size: 484 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Common
    module Plugins
      module CachesConstructorArguments
        class Middleware < MethodChainMiddleware
          intended_for :initialize, entity: any_entity

          ##
          # @return [void]
          #
          def next(...)
            entity.internals.cache[:constructor_arguments] = Support::Arguments.new(...)

            chain.next(...)
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
convenient_service-0.19.1 lib/convenient_service/common/plugins/caches_constructor_arguments/middleware.rb
convenient_service-0.19.0 lib/convenient_service/common/plugins/caches_constructor_arguments/middleware.rb
convenient_service-0.18.0 lib/convenient_service/common/plugins/caches_constructor_arguments/middleware.rb
convenient_service-0.17.0 lib/convenient_service/common/plugins/caches_constructor_arguments/middleware.rb
convenient_service-0.16.0 lib/convenient_service/common/plugins/caches_constructor_arguments/middleware.rb
convenient_service-0.15.0 lib/convenient_service/common/plugins/caches_constructor_arguments/middleware.rb
convenient_service-0.14.0 lib/convenient_service/common/plugins/caches_constructor_arguments/middleware.rb
convenient_service-0.13.0 lib/convenient_service/common/plugins/caches_constructor_arguments/middleware.rb