Class: Blacklight::Rendering::Join

Inherits:
AbstractStep show all
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

#initialize, #next_step

Constructor Details

This class inherits a constructor from Blacklight::Rendering::AbstractStep

Instance Method Details

#renderObject



4
5
6
7
# File 'app/presenters/blacklight/rendering/join.rb', line 4

def render
  options = config.separator_options || {}
  next_step(values.map { |x| html_escape(x) }.to_sentence(options).html_safe)
end