class Roll::Amp::Script::JsonScriptTag

The script tag that contains JSON.

Public Class Methods

new(content) click to toggle source

Initializes script tag instance. @param content [String] the content of the tag.

Calls superclass method
# File lib/roll/amp/script/json_script_tag.rb, line 8
def initialize(content)
  super(JsonScriptTag.type, content)
end
type() click to toggle source

@return [String] JSON MIME type.

# File lib/roll/amp/script/json_script_tag.rb, line 13
def self.type
  'application/json'.freeze
end