Class: PageMeta::MetaTag::DnsPrefetchControl

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

Instance Attribute Summary

Attributes inherited from PageMeta::MetaTag

#name

Instance Method Summary collapse

Methods inherited from PageMeta::MetaTag

build, #content, #helpers, #initialize

Constructor Details

This class inherits a constructor from PageMeta::MetaTag

Instance Method Details

#renderObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/page_meta/meta_tag/dns_prefetch_control.rb', line 6

def render
  meta = helpers.tag(
    :meta,
    "http-equiv" => "x-dns-prefetch-control",
    content: "on"
  )

  link = helpers.tag(:link, rel: "dns-prefetch", href: content)

  meta + link
end