Class: Roll::Amp::Style::NoScriptTag

Inherits:
Object
  • Object
show all
Includes:
ActionView::Helpers::TagHelper
Defined in:
lib/roll/amp/style/noscript_tag.rb

Overview

The <nosript> tag.

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ NoScriptTag

Initializes new instance of the noscript tag.

Parameters:

  • the (String)

    content of the tag.



12
13
14
# File 'lib/roll/amp/style/noscript_tag.rb', line 12

def initialize(content)
  @content = content
end

Instance Method Details

#to_htmlString

Prints this tag as HTML.

Returns:

  • (String)

    HTML-safe string containing the tag’s HTML view.



18
19
20
# File 'lib/roll/amp/style/noscript_tag.rb', line 18

def to_html
  ('noscript', @content)
end