Class: Blacklight::Rendering::Microdata

Inherits:
AbstractStep show all
Includes:
ActionView::Helpers::TagHelper
Defined in:
app/presenters/blacklight/rendering/microdata.rb

Instance Attribute Summary

Attributes inherited from AbstractStep

#config, #context, #document, #options, #stack, #values

Instance Method Summary collapse

Methods inherited from AbstractStep

#initialize

Constructor Details

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

Instance Method Details

#renderObject



7
8
9
10
11
# File 'app/presenters/blacklight/rendering/microdata.rb', line 7

def render
  return next_step(values) unless config.itemprop && html?

  next_step(values.map { |x| itemprop(x, config.itemprop) })
end