Sha256: 93e3db4a8a8ebcab97dc85ed7f8e98e21cbf7b5b86208bbf46737cf02be90fa7

Contents?: true

Size: 343 Bytes

Versions: 38

Compression:

Stored size: 343 Bytes

Contents

module Blacklight
  module Rendering
    class Join < AbstractStep
      def render
        options = config.separator_options || {}
        next_step(values.map { |x| html_escape(x) }.to_sentence(options).html_safe)
      end

      private

        def html_escape(*args)
          ERB::Util.html_escape(*args)
        end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
blacklight-6.25.0 app/presenters/blacklight/rendering/join.rb
blacklight-6.24.0 app/presenters/blacklight/rendering/join.rb
blacklight-6.23.0 app/presenters/blacklight/rendering/join.rb
blacklight-6.22.0 app/presenters/blacklight/rendering/join.rb
blacklight-6.21.0 app/presenters/blacklight/rendering/join.rb
blacklight-6.20.0 app/presenters/blacklight/rendering/join.rb
blacklight-6.19.2 app/presenters/blacklight/rendering/join.rb
blacklight-6.19.1 app/presenters/blacklight/rendering/join.rb
blacklight-6.19.0 app/presenters/blacklight/rendering/join.rb
blacklight-6.18.0 app/presenters/blacklight/rendering/join.rb
blacklight-6.17.0 app/presenters/blacklight/rendering/join.rb
blacklight-6.16.0 app/presenters/blacklight/rendering/join.rb
blacklight-6.15.0 app/presenters/blacklight/rendering/join.rb
blacklight-6.14.1 app/presenters/blacklight/rendering/join.rb
blacklight-6.14.0 app/presenters/blacklight/rendering/join.rb
blacklight-6.13.0 app/presenters/blacklight/rendering/join.rb
blacklight-6.12.0 app/presenters/blacklight/rendering/join.rb
blacklight-6.11.2 app/presenters/blacklight/rendering/join.rb
blacklight-6.11.1 app/presenters/blacklight/rendering/join.rb
blacklight-6.11.0 app/presenters/blacklight/rendering/join.rb