Class: BetterHtml::TestHelper::SafeErb::AllowedScriptType
- Defined in:
- lib/better_html/test_helper/safe_erb/allowed_script_type.rb
Constant Summary collapse
- VALID_JAVASCRIPT_TAG_TYPES =
["application/ld+json", "text/javascript", "text/template", "text/html", "module"]
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from BetterHtml::TestHelper::SafeErb::Base
Instance Method Details
#validate ⇒ Object
11 12 13 14 15 |
# File 'lib/better_html/test_helper/safe_erb/allowed_script_type.rb', line 11 def validate .each do |tag, _| validate_type(tag) end end |