Sha256: cf1e942e05ebc1322a6910e2a29c13f6b9b4d186d14a5861d32dbac1bf893ea5

Contents?: true

Size: 687 Bytes

Versions: 17

Compression:

Stored size: 687 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

      def html?
        options[:format].nil? || options[:format].to_s == 'html'
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
blacklight-8.6.1 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-8.6.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-8.5.1 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-8.5.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-8.4.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-8.3.0/app/presenters/blacklight/rendering/abstract_step.rb
blacklight-8.3.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-8.2.2 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-8.2.1 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-8.2.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-8.1.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-8.0.1 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-8.0.0 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-8.0.0.beta8 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-8.0.0.beta7 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-8.0.0.beta6 app/presenters/blacklight/rendering/abstract_step.rb
blacklight-8.0.0.beta5 app/presenters/blacklight/rendering/abstract_step.rb