Sha256: f84272b2164bd31b8eb95c18d6c9fd3a1ea5a088552eefc03d0d5af7ea7ad770

Contents?: true

Size: 595 Bytes

Versions: 78

Compression:

Stored size: 595 Bytes

Contents

# frozen_string_literal: true

module Blacklight
  module Rendering
    class AbstractStep
      def initialize(values, config, document, context, options, stack)
        @values = values
        @config = config
        @document = document
        @context = context
        @options = options
        @stack = stack
      end

      attr_reader :values, :config, :document, :context, :options, :stack

      private

      def next_step(output_values)
        first, *rest = *stack
        first.new(output_values, config, document, context, options, rest).render
      end
    end
  end
end

Version data entries

78 entries across 78 versions & 2 rubygems

Version Path
blacklight-7.40.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.39.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.38.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.37.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.36.2 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.36.1 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.36.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.35.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.34.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.33.1 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-8.0.0.beta4 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-8.0.0.beta3 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-8.0.0.beta2 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-8.0.0.beta1 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.33.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.32.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.31.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.30.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.29.0 app/presenters/blacklight/rendering/abstract_step.rb