class Para::SeoTools::MetaTags::Vendors::Base

Attributes

template[R]

Public Class Methods

new(template) click to toggle source
# File lib/para/seo_tools/meta_tags/vendors/base.rb, line 10
def initialize(template)
  @template = template
end

Public Instance Methods

render(key, value) click to toggle source
# File lib/para/seo_tools/meta_tags/vendors/base.rb, line 14
def render(key, value)
  tag(:meta, key_name => attribute_name_for(key), content: value)
end

Protected Instance Methods

attribute_name_for(key) click to toggle source
# File lib/para/seo_tools/meta_tags/vendors/base.rb, line 20
def attribute_name_for(key)
  [namespace, key].join(':')
end