Class: Roll::Amp::Style::NoScriptTag
- Inherits:
-
Object
- Object
- Roll::Amp::Style::NoScriptTag
- Includes:
- ActionView::Helpers::TagHelper
- Defined in:
- lib/roll/amp/style/noscript_tag.rb
Overview
The <nosript> tag.
Instance Method Summary collapse
-
#initialize(content) ⇒ NoScriptTag
constructor
Initializes new instance of the noscript tag.
-
#to_html ⇒ String
Prints this tag as HTML.
Constructor Details
#initialize(content) ⇒ NoScriptTag
Initializes new instance of the noscript tag.
12 13 14 |
# File 'lib/roll/amp/style/noscript_tag.rb', line 12 def initialize(content) @content = content end |
Instance Method Details
#to_html ⇒ String
Prints this tag as HTML.
18 19 20 |
# File 'lib/roll/amp/style/noscript_tag.rb', line 18 def to_html content_tag('noscript', @content) end |