Class: Blacklight::Rendering::Join
- Inherits:
-
AbstractStep
- Object
- AbstractStep
- Blacklight::Rendering::Join
- Defined in:
- app/presenters/blacklight/rendering/join.rb
Instance Attribute Summary
Attributes inherited from AbstractStep
#config, #context, #document, #options, #stack, #values
Instance Method Summary collapse
Methods inherited from AbstractStep
Constructor Details
This class inherits a constructor from Blacklight::Rendering::AbstractStep
Instance Method Details
#render ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'app/presenters/blacklight/rendering/join.rb', line 6 def render = config. || {} if join? && html? && values.many? next_step(values.map { |x| x.html_safe? ? x : html_escape(x) }.to_sentence().html_safe) else next_step(values) end end |