Class: PageMeta::MetaTag::MultipleMetaTag

Inherits:
PageMeta::MetaTag show all
Defined in:
lib/page_meta/meta_tag.rb

Direct Known Subclasses

Author, Description, Keywords

Instance Attribute Summary

Attributes inherited from PageMeta::MetaTag

#content, #name

Instance Method Summary collapse

Methods inherited from PageMeta::MetaTag

build, #helpers, #initialize

Constructor Details

This class inherits a constructor from PageMeta::MetaTag

Instance Method Details

#renderObject



31
32
33
34
35
36
# File 'lib/page_meta/meta_tag.rb', line 31

def render
  return if content.empty?

  helpers.tag(:meta, name: name, content: content) +
    helpers.tag(:meta, itemprop: name, content: content)
end