class Roll::Amp::Style::NoScriptTag
The <nosript> tag.
Public Class Methods
new(content)
click to toggle source
Initializes new instance of the noscript tag. @param [String] the content of the tag.
# File lib/roll/amp/style/noscript_tag.rb, line 12 def initialize(content) @content = content end
Public Instance Methods
to_html()
click to toggle source
Prints this tag as HTML. @return [String] HTML-safe string containing the tag's HTML view.
# File lib/roll/amp/style/noscript_tag.rb, line 18 def to_html content_tag('noscript', @content) end