Class: Blacklight::Rendering::AbstractStep

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/blacklight/rendering/abstract_step.rb

Direct Known Subclasses

HelperMethod, Join, LinkToFacet, Microdata, Terminator

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(values, config, document, context, options, stack) ⇒ AbstractStep

Returns a new instance of AbstractStep.



4
5
6
7
8
9
10
11
# File 'app/presenters/blacklight/rendering/abstract_step.rb', line 4

def initialize(values, config, document, context, options, stack)
  @values = values
  @config = config
  @document = document
  @context = context
  @options = options
  @stack = stack
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



13
14
15
# File 'app/presenters/blacklight/rendering/abstract_step.rb', line 13

def config
  @config
end

#contextObject (readonly)

Returns the value of attribute context.



13
14
15
# File 'app/presenters/blacklight/rendering/abstract_step.rb', line 13

def context
  @context
end

#documentObject (readonly)

Returns the value of attribute document.



13
14
15
# File 'app/presenters/blacklight/rendering/abstract_step.rb', line 13

def document
  @document
end

#optionsObject (readonly)

Returns the value of attribute options.



13
14
15
# File 'app/presenters/blacklight/rendering/abstract_step.rb', line 13

def options
  @options
end

#stackObject (readonly)

Returns the value of attribute stack.



13
14
15
# File 'app/presenters/blacklight/rendering/abstract_step.rb', line 13

def stack
  @stack
end

#valuesObject (readonly)

Returns the value of attribute values.



13
14
15
# File 'app/presenters/blacklight/rendering/abstract_step.rb', line 13

def values
  @values
end

Instance Method Details

#next_step(output_values) ⇒ Object (protected)



17
18
19
20
# File 'app/presenters/blacklight/rendering/abstract_step.rb', line 17

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