class Roll::Amp::Script::AmpJsTag

The script tag with AMP main JS file.

Public Class Methods

new() click to toggle source

Initializes new instance of the AMP script tag.

Calls superclass method
# File lib/roll/amp/script/amp_js_tag.rb, line 7
def initialize
  super(AmpJsTag.src)
end
src() click to toggle source

@return [String] Link to main AMP script which must be always included on AMP pages.

# File lib/roll/amp/script/amp_js_tag.rb, line 13
def self.src
  'https://cdn.ampproject.org/v0.js'.freeze
end