Class: PageMeta::MetaTag::DnsPrefetchControl
- Inherits:
-
PageMeta::MetaTag
- Object
- PageMeta::MetaTag
- PageMeta::MetaTag::DnsPrefetchControl
- Defined in:
- lib/page_meta/meta_tag/dns_prefetch_control.rb
Instance Attribute Summary
Attributes inherited from PageMeta::MetaTag
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
#render ⇒ Object
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 = helpers.tag( :meta, "http-equiv" => "x-dns-prefetch-control", content: "on" ) link = helpers.tag(:link, rel: "dns-prefetch", href: content) + link end |