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.28.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.27.1 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.27.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.26.1 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.26.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.25.3 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.25.2 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.25.1 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.25.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.24.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.23.0.1 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.23.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.22.2 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.22.1 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.22.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.21.2 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.21.1 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.21.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.20.1 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-7.20.0 app/presenters/blacklight/rendering/abstract_step.rb