Class: Roll::Amp::Script::JsonScriptTag
- Defined in:
- lib/roll/amp/script/json_script_tag.rb
Overview
The script tag that contains JSON.
Class Method Summary collapse
-
.type ⇒ String
JSON MIME type.
Instance Method Summary collapse
-
#initialize(content) ⇒ JsonScriptTag
constructor
Initializes script tag instance.
Methods inherited from ScriptTag
Constructor Details
#initialize(content) ⇒ JsonScriptTag
Initializes script tag instance.
8 9 10 |
# File 'lib/roll/amp/script/json_script_tag.rb', line 8 def initialize(content) super(JsonScriptTag.type, content) end |
Class Method Details
.type ⇒ String
Returns JSON MIME type.
13 14 15 |
# File 'lib/roll/amp/script/json_script_tag.rb', line 13 def self.type 'application/json'.freeze end |