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, #next_step

Constructor Details

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

Instance Method Details

#renderObject



5
6
7
8
# File 'app/presenters/blacklight/rendering/microdata.rb', line 5

def render
  return next_step(values) unless config.itemprop
  next_step(values.map { |x| itemprop(x, config.itemprop) })
end